Navigator is deprecated and has been removed from this package
Error: 'Navigator is deprecated and has been removed from this package. It can now be installed ' +
'and imported from `react-native-deprecated-custom-components` instead of `react-native`. ' +
'Learn about alternative navigation solutions at http://facebook.github.io/react-native/docs/navigation.html'
This is because if the version is upgraded to 0.43 or above, Navigator cannot be obtained directly from react-native, the
solution:
npm install react -native-deprecated-custom-components
--save
then
import {Navigator}
from react-native-deprecated-custom-components where it is referenced
'and imported from `react-native-deprecated-custom-components` instead of `react-native`. ' +
'Learn about alternative navigation solutions at http://facebook.github.io/react-native/docs/navigation.html'
This is because if the version is upgraded to 0.43 or above, Navigator cannot be obtained directly from react-native, the
solution:
npm install react -native-deprecated-custom-components
--save
then
import {Navigator}
from react-native-deprecated-custom-components where it is referenced