From 36d97a6349fac52ee1a7adebd9e962b191db1329 Mon Sep 17 00:00:00 2001 From: tyBrave Date: Fri, 13 Feb 2026 15:25:02 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IDQXLP]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-worklets=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tyBrave --- en/react-native-worklets.md | 58 ++++++++++++++++++---------------- zh-cn/react-native-worklets.md | 54 ++++++++++++++++--------------- 2 files changed, 59 insertions(+), 53 deletions(-) diff --git a/en/react-native-worklets.md b/en/react-native-worklets.md index 8e58d7d9..8c75ce46 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}