@ohos-ports/react-native-navigation 8.9.0-beta.11 → 8.9.0-beta.12
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.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,17 +8,17 @@ React Native Navigation — truly native navigation for iOS and Android, ported
|
|
|
8
8
|
npm install @ohos-ports/react-native-navigation @ohos-ports/react-native react
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The `react-native` overrides (mapping all `react-native` references to `@ohos-ports/react-native`) are **automatically configured** by the package's postinstall script. If the script does not run (e.g. install scripts are disabled), add this to your project's `package.json` manually:
|
|
12
12
|
|
|
13
13
|
```json
|
|
14
14
|
{
|
|
15
15
|
"overrides": {
|
|
16
|
-
"react-native": "npm:@ohos-ports/react-native@^0.87.1-beta.
|
|
16
|
+
"react-native": "npm:@ohos-ports/react-native@^0.87.1-beta.2"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
This ensures that all `react-native` references (including transitive dependencies) resolve to `@ohos-ports/react-native`, preventing the original Facebook `react-native` (with Flow syntax) from being installed.
|
|
22
22
|
|
|
23
23
|
## Requirements
|
|
24
24
|
|
package/package.json
CHANGED