diff --git a/en/react-native-worklets.md b/en/react-native-worklets.md index 8e58d7d9380bf6b470265a6007fdca803ec96ced..8c75ce46363cc73144253d8a80d43d984c7f58bb 100644 --- a/en/react-native-worklets.md +++ b/en/react-native-worklets.md @@ -16,9 +16,10 @@ This project is based on [react-native-worklets@0.7.1](https://github.com/softwa This third-party library supports direct download from npm. Its package name is: @react-native-ohos/react-native-worklets -|Name| Version | Release Information | Supported RN Version |Supported Autolink| Compile API Version |Community Baseline Version |npm Address| -|---------| ------------------------- | ------------------------------------------------- | -------------------------- | ---| ---|----|----| -|@react-native-ohos/react-native-worklets | ~1.0.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-reanimated/tree/br_rnoh0.82/package/react-native-worklets) | 0.82.* | No|API12+|0.7.1|[Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-worklets)| +| Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | +| ---------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------ | ------------------- | -------------------------- | ------------------------------------------------------------------------------------- | +| @react-native-ohos/react-native-worklets | ~1.0.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-reanimated/tree/br_rnoh0.82/package/react-native-worklets) | 0.82.\* | No | API12+ | 0.7.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-worklets) | + ## 1. Installation and Usage Go to the project directory and execute the following instruction: @@ -83,7 +84,7 @@ The following code demonstrates the basic usage scenario of this library: ```js import { runOnUIAsync} from 'react-native-worklets'; - + import React, { useState } from 'react'; import { Platform, StyleSheet, Text, View,Button } from 'react-native'; @@ -96,7 +97,7 @@ const result: Promise = runOnUIAsync((): string => { return ( - + runOnUIAsync:{textResult}