t4t5 / react-native-router

Awesome navigation for your React Native app.
MIT License
1.17k stars 155 forks source link

Issue after installing react native router #49

Closed manju1981 closed 9 years ago

manju1981 commented 9 years ago

Hi,

After i install npm install react-native-router --save-dev i am not able to run the app i receive below message.

2015-07-24 12:38:40.731 [error][tid:com.facebook.React.JavaScript] 'Error: undefined is not an object (evaluating \'RCTScrollViewConsts.KeyboardDismissMode.None\')\n stack: \n index.ios.bundle:24736\n require index.ios.bundle:254\n index.ios.bundle:23786\n require index.ios.bundle:254\n index.ios.bundle:1544\n require index.ios.bundle:254\n index.ios.bundle:1435\n require index.ios.bundle:254\n require index.ios.bundle:200\n index.ios.bundle:41745\n URL: http://localhost:8081/index.ios.bundle\n line: 24736\n message: undefined is not an object (evaluating \'RCTScrollViewConsts.KeyboardDismissMode.None\')' 2015-07-24 12:38:40.733 [warn][tid:com.facebook.React.JavaScript] 'Unable to load source map: RCTDataManager module is not available' 2015-07-24 12:38:40.737 [error][tid:com.facebook.React.JavaScript] 'Error: undefined is not an object (evaluating \'this._localModuleNameToMethodIDToName[moduleName][methodID]\')\n stack: \n _callFunction index.ios.bundle:7992\n index.ios.bundle:8025\n index.ios.bundle:8019\n perform index.ios.bundle:6534\n batchedUpdates index.ios.bundle:14397\n batchedUpdates index.ios.bundle:5066\n index.ios.bundle:8018\n applyWithErrorReporter index.ios.bundle:7770\n guardReturn index.ios.bundle:7792\n processBatch index.ios.bundle:8017\n URL: http://localhost:8081/index.ios.bundle\n line: 7992\n message: undefined is not an object (evaluating \'this._localModuleNameToMethodIDToName[moduleName][methodID]\')' 2015-07-24 12:38:40.738 [warn][tid:com.facebook.React.JavaScript] 'Unable to load source map: RCTDataManager module is not available' 2015-07-24 12:38:40.803 [error][tid:com.facebook.React.JavaScript] 'Error: undefined is not an object (evaluating \'this._localModuleNameToMethodIDToName[moduleName][methodID]\')\n stack: \n _callFunction index.ios.bundle:7992\n index.ios.bundle:8025\n index.ios.bundle:8019\n perform index.ios.bundle:6534\n batchedUpdates index.ios.bundle:14397\n batchedUpdates index.ios.bundle:5066\n index.ios.bundle:8018\n applyWithErrorReporter index.ios.bundle:7770\n guardReturn index.ios.bundle:7792\n processBatch index.ios.bundle:8017\n URL: http://localhost:8081/index.ios.bundle\n line: 7992\n message: undefined is not an object (evaluating \'this._localModuleNameToMethodIDToName[moduleName][methodID]\')' 2015-07-24 12:38:40.803 [warn][tid:com.facebook.React.JavaScript] 'Unable to load source map: RCTDataManager module is not available'

Regards Manjunath

wenkesj commented 9 years ago

Add react-native as a peerDependency inside this repository where you use it and update the version to the latest version that you are using inside your app to match it.

manju1981 commented 9 years ago

@wenkesj Thank you, Removed react-native from node-modules folder under react-native-router and added peerdependency "peerDependencies": { "react-native": ">= 0.7.1 < 1" }, in react native router package.json.