I am recently installing npm and react native
I heard from a 2years old tutorial that new npm versions don't support react native
has this issue been fixed or is npm#5 still incompatible with react native?
Try latest node modules and react-native package.It is better to use Node Version 10 or above for better development environment.
Related
Right now I am working on npm package for my react native app,My app contain lots of things, like have a native modules, lots of dependencies,I am using this to create npm package for my app.
Question 1 - Above package (Mentioned as this) is good for create npm package for my react native app?
Question 2 - As I mentioned that my react native app contain native modules too how can I manage into npm package?
Many thanks in advance
When I install the sendbird SDK into a expo managed react native project I get the following error:
The package at "node_modules/sendbird/SendBird.min.js" attempted to import the Node standard library module "fs". It failed because React Native does not include the Node standard library. Read more at https://docs.expo.io/versions/latest/introduction/faq/#can-i-use-nodejs-packages-with-expo
However fs is a node package which isn't the environment run by react native. I've looked through the Sendbird examples, and have used this very same SDK in other apps. What am I doing wrong with this one?
SendBird here! Our apologies, but there is a known issue in JavaScript version 3.0.119 that is causing it. This will be fixed in the next version, coming very soon! In the meantime, please build with version 3.0.118 as needed.
If you are using npm, you can run this command:
npm install --save sendbird#3.0.118
I am currently working with React Native and I want to use its navigation component. The documentation (https://facebook.github.io/react-native/docs/navigation.html) says I should install react-navigation module for using it, but when I install it
npm install react-navigation
the application stops working the moment it finishes installing. It seems it removes some modules; I get the following output:
added 16 packages, removed 1003 packages and updated 18 packages
Any idea why this is happening? How can this be fixed?
What version of npm are you using? You may be experiencing this bug: https://github.com/npm/npm/issues/17379
How to find the current/latest available version and subversion of react native from the web? 0.41.0, 0.41.1, 0.41.2 etc
Not this react-native --version, as this finds the version of the current project.
You can try: npm show react-native version. The current result is
0.41.2
Hi i am a newbie to react native, just now installed react and trying to open my first app but it shows error. Please guide me what to do next and why it happens.
Some packages you installed maybe not compatible with the React Native version you used. You can check the peerDependencies of all your dependencies and try to remove dependencies which have a react-native version less than 0.25 in peerDependencies.