componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native

You should move all the code from the componentWillMount to the constructor or componentDidMount. componentWillMount() is invoked just before mounting occurs. It is called before render(), therefore calling setState() synchronously in this method will not trigger an extra rendering. Generally, we recommend using the constructor() instead. Avoid introducing any side-effects or subscriptions in this method. … Read more

Unable to resolve module ‘AccessibilityInfo’, when trying to create release bundle

It seems like a bug in 0.56 related to dependencies. The “solution” is to find the correct combination of dependencies’ versions. We found a workaround by installing those versions EXACTLY: react-native >> 0.55.4 babel-core >> latest babel-loader >> latest babel-preset-react-native >> 4.0.0 So you have to run those commands in order: react-native init AwesomeProject cd … Read more

How to navigate between different nested stacks in react navigation

In React Navigation 5, this becomes much easier by passing in the screen as the second parameter: navigation.navigate(‘Nested Navigator 2’, { screen: ‘screen D’ }); You can also include additional levels if you have deeply nested screens: navigation.navigate(‘Nested Navigator 2’, { screen: ‘Nested Navigator 3’, params: { screen: ‘screen E’ } });

React Native Error: ENOSPC: System limit for number of file watchers reached

Linux uses the inotify package to observe filesystem events, individual files or directories. Since React / Angular hot-reloads and recompiles files on save it needs to keep track of all project’s files. Increasing the inotify watch limit should hide the warning messages. You could try editing # insert the new value into the system config … Read more