react-native-create-bridge
react-native-create-bridge copied to clipboard
react-native new-module
Dev setup:
react-native-create-bridgeversion:react-nativeversion:
I am using create-bridge in a:
- [ ] standalone library
- [x] existing React Native project
What you did:
after installing this with yarn, I tried to execute the command: react-native new-module, but the command is nonexistent.
What happened:
Same here
same here
same here
Same here
Any solution here?
same here
same
any answer about this issue?
make react-native project by react-native init projectname. then you can run this command at the root of new project
Same here
Same here
Follow up:
I had installed react-native-create-bridge globally. I re-installed locally and it works now
Has anyone managed to get around this? I've tried all of the suggestions I've found whilst googling but all I get is:
$ react-native new-module error Unrecognized command "new-module".
@fryercorp Did you install react-native-create-bridge locally?
@fryercorp Did you install
react-native-create-bridgelocally?
I ran
npm install --save react-native-create-bridge
I can see the package in the node-modules directoy associated with my project.
I'm not sure if I'm missing any other dependencies.
same here. Any solution?
same issue
same here
It is a missing file in ./node_modules/.bin directory. As I understand it, it should be a modified file ./node_modules/react-native-create-bridge/build/index.js named new-module.js With
(async function main() {
init();
}()).catch();
instead
module.exports = {
name: "new-module",
description: "bridges React Native modules & UI components",
func: init
};
last commit is about 3 years ago, i guess this project is as good as abandoned.
I ran into this as well. Here's how I fixed it
- Apply @novseje's code change in
./node_modules/react-native-create-bridge/build/index.jsso that the file will run when you call it (don't bother renaming it). - run
node ./node_modules/react-native-create-bridge/build/index.js - It works!
^^ @markrickert That worked for me, was able to run the command
@markrickert It worked. Thanks!
Opposite for me.
I needed to change ./node_modules/react-native-create-bridge/build/index.js
module.exports = {
name: "new-module",
description: "bridges React Native modules & UI components",
func: init
};
to
(async function main() {
init();
}()).catch();
then run: node ./node_modules/react-native-create-bridge/build/index.js and it runs 👍
react-native new-module still doesn't work