diff --git a/en/jpush-react-native.md b/en/jpush-react-native.md index 159f16b8e2cc43e356f1f18ab64c7ac3f6858f37..fad87bb54ae9417a25ead9013bf764e9ac3034e2 100644 --- a/en/jpush-react-native.md +++ b/en/jpush-react-native.md @@ -1,4 +1,4 @@ -> 模板版本:v0.2.2 +> Template version: v0.2.2

jpush-react-native

@@ -12,14 +12,14 @@

-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/jpush-react-native) +> [!TIP] [GitHub address](https://github.com/react-native-oh-library/jpush-react-native) -## 安装与使用 +## Installation and Usage Find the matching version information in the release address of a third-party library:[@react-native-oh-tpl/jpush-react-native Releases](https://github.com/react-native-oh-library/jpush-react-native/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. -进入到工程目录并输入以下命令: +Go to the project directory and execute the following instruction: @@ -36,11 +36,11 @@ yarn add @react-native-oh-tpl/jpush-react-native ``` -另外还需按照[极光推送SDK-HarmonyOS集成指南](https://docs.jiguang.cn/jpush/client/HarmonyOS/hmos_guide)完成极光推送相关的配置 +Additionally, it is necessary to follow the [Aurora Push SDK HarmonyOS Integration Guide]( https://docs.jiguang.cn/jpush/client/HarmonyOS/hmos_guide )Complete the configuration related to Aurora Push -下面的代码展示了这个库的基本使用场景: +The following code shows the basic use scenario of the repository: -> [!WARNING] 使用时 import 的库名不变。 +> [!WARNING] The name of the imported repository remains unchanged. ```js import React from 'react'; @@ -48,7 +48,7 @@ import { Text, View, Button } from 'react-native'; import JPush from 'jpush-react-native'; function App() { - let localNotification = { messageID: '1', title: 'add local notification', content: '测试添加一个本地通知', broadcastTime: new Date().getTime(), extras: { content: '附加内容' } }; + let localNotification = { messageID: '1', title: 'add local notification', content: 'Test adding a local notification', broadcastTime: new Date().getTime(), extras: { content: 'Additional content' } }; return ( 请先前往手机"设置"-->"通知和状态栏"打开测试应用的通知 + }}>Please go to your phone's "Settings" ->"Notifications and Status Bar" to open the notification for the test application first