diff --git a/en/baronha-ting.md b/en/baronha-ting.md index d2352e60c87bd9c6a19d276a3c9455386780cacc..4d632cd21b67cc5a3888a202ec9c79d0b1ccb254 100644 --- a/en/baronha-ting.md +++ b/en/baronha-ting.md @@ -4,7 +4,7 @@

@baronha/ting

- + Supported platforms @@ -12,38 +12,51 @@

-> [!TIP] [GitHub address](https://github.com/react-native-oh-library/ting) +> [!TIP] [Github Address](https://github.com/react-native-oh-library/ting) -## Installation and Usage +The repository for this third-party library has been migrated to Gitcode, and it now supports direct download from npm. The new package name is: `@react-native-ohos/ting`. The specific version relationships are as follows: -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/ting Releases](https://github.com/react-native-oh-library/ting/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. +| Version | Package Name | Repository | Release |Supported RN Version | +| ------------------------------ | ---------------- | ------------------- | ------------------- | -------------------- | +| 1.2.2 | @react-native-oh-tpl/ting | [Github](https://github.com/react-native-oh-library/ting) | [Github Releases](https://github.com/react-native-oh-library/async-storage/releases) | 0.72 | +| 1.3.0 | @react-native-ohos/ting | [GitCode](https://gitcode.com/openharmony-sig/rntpc_ting) | [GitCode Releases]() | 0.77 | -Go to the project directory and execute the following instruction: +## Installation and Usage +For older versions not published to npm, please refer to the [Installation Guide](/en/tgz-usage.md) to install the tgz package. +Navigate to your project directory and enter the following commands: #### **npm** ```bash +# V1.2.2 npm install @react-native-oh-tpl/ting + +# V1.3.0 +npm install @react-native-ohos/ting ``` #### **yarn** ```bash +# V1.2.2 yarn add @react-native-oh-tpl/ting + +# V1.3.0 +yarn add @react-native-ohos/ting ``` -The following code shows the basic use scenario of the repository: +The following code demonstrates basic usage scenarios of this library: -> [!WARNING] The name of the imported repository remains unchanged. +> [!WARNING] The library name in the import statement remains unchanged. ```js -import { View } from "react-native"; +import { View, Button } from "react-native"; import { ToastOptions, toast @@ -55,34 +68,35 @@ function handleToast(options: ToastOptions) { const App = () => { return ( - -