| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Analyses your React Native project and calculates the percentage of
The formulas are based on the two ways of targeting specific platforms in React Native:


You can install react-native-shared-code either as a global package or a local module.
npm install -g react-native-shared-code react-native-shared-code path-to-react-native-project
npm install --save-dev react-native-shared-code
Add shared-code script to your package.json
{
"scripts": {
"shared-code": "react-native-shared-code"
}
}
Usage: react-native-shared-code [path] [options]
Commands:
[path] path to React Native project (default value is cwd)
Options:
-h, --help output usage information
-v, --version output the version number
-p, --platform platform for which to calculate the shared code percentages.
Accepted values are ios, android and windows.
By default, it detects index.platform.js for android, ios, windows
--verbose output debugging info
Fidan Hakaj
| Back | FazBrowse Home | New Git URL |