From b336c614263813eb4174e67259166e6958d0e137 Mon Sep 17 00:00:00 2001 From: lizhien52O Date: Thu, 21 Nov 2024 17:20:17 +0800 Subject: [PATCH 01/24] docs: [Issues: #IB64EO] jpush-react-native.md --- en/jpush-react-native.md | 198 +++++++++++++++++++-------------------- 1 file changed, 97 insertions(+), 101 deletions(-) diff --git a/en/jpush-react-native.md b/en/jpush-react-native.md index 159f16b8..fad87bb5 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