creates the module and the Android example but terminates with the given error:
pod --version failure, aborting with broken example app
Error while creating library module react-native-my-fancy-library
Error: Command failed with ENOENT: pod --version
spawnSync pod ENOENT
at Object.spawnSync (internal/child_process.js:1074:20)
at Object.spawnSync (child_process.js:746:24)
at Function.module.exports.sync (~/.npm/_npx/10044/lib/node_modules/create-react-native-module/node_modules/execa/index.js:174:25)
at module.exports.commandSync (~/.npm/_npx/10044/lib/node_modules/create-react-native-module/node_modules/execa/index.js:235:15)
at ~/.npm/_npx/10044/lib/node_modules/create-react-native-module/lib/lib.js:265:17
at new Promise (<anonymous>)
at ~/.npm/_npx/10044/lib/node_modules/create-react-native-module/lib/lib.js:223:18
I'm unsure whether the creation of the module (everything but iOS example) has completed or not.
entering the command:
npx create-react-native-module MyFancyLibrary --generate-example
creates the module and the Android example but terminates with the given error:
I'm unsure whether the creation of the module (everything but iOS example) has completed or not.
EDIT
I forgot to use
--platforms
flag!