mkdir calculator
touch calculator/package.json
- Paste the following code into the
package.json
file
{
"name": "calculator",
"version": "0.0.1",
"description": "Showcase Turbomodule with backward compatibility",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"android",
"ios",
"calculator.podspec",
"!android/build",
"!ios/build",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__"
],
"keywords": ["react-native", "ios", "android"],
"repository": "https://github.com/<your_github_handle>/calculator",
"author": "<Your Name> <your_email@your_provider.com> (https://github.com/<your_github_handle>)",
"license": "MIT",
"bugs": {
"url": "https://github.com/<your_github_handle>/calculator/issues"
},
"homepage": "https://github.com/<your_github_handle>/calculator#readme",
"devDependencies": {},
"peerDependencies": {
"react": "*",
"react-native": "*"
}
}