我最近使用npm
将React Native更新为v0.7.1,使用自制程序更新为iojs
。但是,在脱机版本中执行应用程序时(使用curl
下载捆绑包后),我收到以下错误:
2015-07-16 18:19:21.937 [error][tid:com.facebook.React.JavaScript] "Error: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')
stack:
_callFunction main.jsbundle:3
<unknown> main.jsbundle:3
<unknown> main.jsbundle:3
perform main.jsbundle:2
batchedUpdates main.jsbundle:5
u main.jsbundle:2
<unknown> main.jsbundle:3
T main.jsbundle:3
C main.jsbundle:3
processBatch main.jsbundle:3
URL: file:///private/var/mobile/Containers/Bundle/Application/BBE9CDDD-159D-4269-A649-B76CCD11737E/hafnertecBluetoothControlReactNative.app/main.jsbundle
line: 3
message: undefined is not an object (evaluating 'this._localModuleNameToMethodIDToName[r][t]')"
开发版本运行正常。我使用React Native v0.4.0
启动了这个项目答案 0 :(得分:0)
问题是由模块react-native-localization
引起的,该模块需要旧版react-native
。 This issue has already been fixed.