We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use: "dependencies": { "react": "16.3.1", "react-native": "0.55.4", "react-native-torch": "^1.1.4" },
... import Torch from 'react-native-torch'; ... Torch.switchState(true); ...
Same error in android: Possible Unhandled Promise Rejection(id:0): typeError:undefined is not an object(evaluating 'Torch.switchState')
The text was updated successfully, but these errors were encountered:
Same problem as you
Sorry, something went wrong.
Try the manual install instructions
EDIT:
Found a similar thread, the consensus seemed to be you have to rebuild your app. You can't just add a library and then reload the bundler.
Hey Rebuilding the app works for me :) so try it out
react-native run-android then try it should work
react-native run-android
No branches or pull requests
I use:
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-torch": "^1.1.4"
},
...
import Torch from 'react-native-torch';
...
Torch.switchState(true);
...
Same error in android:
Possible Unhandled Promise Rejection(id:0):
typeError:undefined is not an object(evaluating 'Torch.switchState')
The text was updated successfully, but these errors were encountered: