I've tried importing my Settings screen to my drawer config in order to import both of them on app.js but I get an error requiring a certain module "699". Can anyone help please?
import React from 'react';
import { Platform, Dimensions} from 'react-native';
import { createDrawerNavigator, createAppContainer } from 'react-navigation';
import SettingScreen from '../Menu/SettingScreen'
const WIDTH = Dimensions.get('window').width;
const DrawerConfig = {
drawerWidth: WIDTH*0.83,
}
const DrawerNavigator = createDrawerNavigator(
{
Settings: {
screen: SettingScreen
},
},
DrawerConfig
);
export default createAppContainer(DrawerNavigator);
This type of error is often a problem regarding Metro Bundler. To solve this issue, close metro bundler and re-run your application.
If that doesn't work, clear the Metro Bundler cache as mentioned here. Run these commands to clear metro bundler cache but do this at YOUR own risk.
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With