react-native-i18njs 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -39,7 +39,11 @@ npm install react-native-i18njs
39
39
  yarn add react-native-i18njs
40
40
  ```
41
41
 
42
- > **注意**:本库已内置 `i18n-js` 和 `react-native-localize` 的稳定版本,无需手动安装 peer dependencies。
42
+ > **注意**:`react-native-localize` peer dependency,请确保项目中已安装:
43
+ >
44
+ > ```bash
45
+ > npm install react-native-localize
46
+ > ```
43
47
 
44
48
  ## 🚀 快速开始
45
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-i18njs",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "一个轻量级、类型安全、零心智负担的 React Native 国际化解决方案。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,12 +44,12 @@
44
44
  "prepack": "npm run build"
45
45
  },
46
46
  "dependencies": {
47
- "i18n-js": "^4.5.1",
48
- "react-native-localize": "^3.6.1"
47
+ "i18n-js": "^4.5.1"
49
48
  },
50
49
  "peerDependencies": {
51
50
  "react": ">=16.8",
52
- "react-native": ">=0.64"
51
+ "react-native": ">=0.64",
52
+ "react-native-localize": ">=2.0.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/jest": "^30.0.0",