Skip to content

Commit

Permalink
docs(hermes): update hermes usage guide
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Mar 6, 2025
1 parent c9ee0a9 commit c6f818d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/development/use-hermes-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Hippy 从 `3.4.0` 版本开始支持 Hermes 引擎。本文档将指导你如何
- **启动时间**:首帧耗时(FP指标)减少约 50% ~ 60%
- **内存占用**:一般场景内存降低约 20% ~ 40%

> Android 平台性能参考数据将在 Beta 版发布后提供。
> 其他平台性能参考数据将在 Beta 版发布后提供。
## 终端切换步骤

Expand All @@ -35,7 +35,7 @@ Hippy 从 `3.4.0` 版本开始支持 Hermes 引擎。本文档将指导你如何
打开你的项目目录下的 `Podfile` 文件,添加环境变量以指定使用 Hermes 引擎:

```ruby
ENV['js_engine'] = 'jsc' # js engine configuration for hippy, options are: 'jsc'/'hermes'.
ENV['js_engine'] = 'hermes' # js engine configuration for hippy, options are: 'jsc'/'hermes'.
```

同时,在 `Podfile` 文件中添加 Hermes 依赖:
Expand Down Expand Up @@ -150,7 +150,7 @@ Hippy 从 `3.4.0` 版本开始支持 Hermes 引擎。本文档将指导你如何

推荐使用以下 Babel 预设和插件,以确保项目能够兼容 Hermes 引擎,以 Babel 为例::

```json
```js
module.exports = {
presets : [
['module:metro-react-native-babel-preset'],
Expand Down

0 comments on commit c6f818d

Please sign in to comment.