When running my app, the bundle loads and instantly crashes
react-native init myapp
npm install redux react-redux react-native-navigation
react-native link
Logs
-
Jun 11 21:21:34 cdf assertiond[22918]: assertion failed: 17C88 13B143: assertiond + 12188 [93FFE0B6-5C27-387F-B32A-6EE378BBB22A]: 0x1
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Jun 11 21:21:34 cdf SpringBoard[22913]: LICreateIconForImage passed NULL CGImageRef image
Jun 11 21:21:35 cdf saveleaf[23925]: assertion failed: 17C88 13B143: libxpc.dylib + 58126 [0F47719F-3076-3664-A64B-CEB6901B254D]: 0x7d
Jun 11 21:21:35 cdf assertiond[22918]: assertion failed: 17C88 13B143: assertiond + 12188 [93FFE0B6-5C27-387F-B32A-6EE378BBB22A]: 0x1
Jun 11 21:21:35 --- last message repeated 1 time ---
Jun 11 21:21:35 cdf saveleaf[23925]: Initializing <RCTCxxBridge: 0x7fde71d717f0> (parent: <RCTBridge: 0x7fde71d8b730>, executor: (null))
Jun 11 21:21:35 cdf saveleaf[23925]: Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
Jun 11 21:21:35 cdf saveleaf[23925]: Module RCTImageLoader requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
Jun 11 21:21:35 cdf saveleaf[23925]: Module A0Auth0 requires main queue setup since it overrides `constantsToExport` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
Jun 11 21:21:35 cdf saveleaf[23925]: Running application saveleaf ({
initialProps = {
};
rootTag = 1;
})
Jun 11 21:21:35 cdf assertiond[22918]: assertion failed: 17C88 13B143: assertiond + 12188 [93FFE0B6-5C27-387F-B32A-6EE378BBB22A]: 0x1
Jun 11 21:21:36 --- last message repeated 2 times ---
Jun 11 21:21:36 cdf saveleaf[23925]: set root
Jun 11 21:21:36 cdf saveleaf[23925]: *** Assertion failure in -[RCTRootView initWithBridge:moduleName:initialProperties:](), /Users/johncd/Coding/saveleaf/node_modules/react-native/React/Base/RCTRootView.m:57
Jun 11 21:21:36 cdf saveleaf[23925]: Running application "saveleaf" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
Jun 11 21:21:36 cdf saveleaf[23925]: component is not a function. (In 'component()', 'component' is undefined)
Jun 11 21:21:36 cdf saveleaf[23925]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'A bridge instance is required to create an RCTRootView'
*** First throw call stack:
(
0 CoreFoundation 0x000000010599df45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000104b9cdeb objc_exception_throw + 48
2 CoreFoundation 0x000000010599ddaa +[NSException raise:format:arguments:] + 106
3 Foundation 0x00000001047e96b2 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
4 saveleaf 0x0000000103ef4780 -[RCTRootView initWithBridge:moduleName:initialProperties:] + 640
5 saveleaf 0x00000001041a3a93 -[RCCViewController initWithComponent:passProps:navigatorStyle:globalProps:bridge:] + 323
6 saveleaf 0x0000000104172539 -[RCCNavigationController initWithProps:children:globalProps:bridge:] + 537
7 saveleaf 0x00000001041a2fad +[RCCViewController controllerWithLayout:globalProps:bridge:] + 1021
8 saveleaf 0x00000001041810ee -[RCCManagerModule performSetRootController:animationType:globalProps:] + 798
9 saveleaf 0x0000000104180756 __82-[RCCManagerModule setRootController:animationType:globalProps:resolver:rejecter:]_block_invoke + 54
10 libdispatch.dylib 0x000000010897cd59 _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x00000001089984a7 _dispatch_client_callout + 8
12 libdispatch.dylib 0x0000000108982f2d _dispatch_main_queue_callback_4CF + 714
13 CoreFoundation 0x00000001058fe2e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14 CoreFoundation 0x00000001058bf8a9 __CFRunLoopRun + 2073
15 CoreFoundation 0x00000001058bee08 CFRunLoopRunSpecific + 488
16 GraphicsServices 0x000000010a42aad2 GSEventRunModal + 161
17 UIKit 0x000000010737230d UIApplicationMain + 171
18 saveleaf 0x0000000103e93d8f main + 111
19 libdyld.dylib 0x00000001089c792d start + 1
)
Jun 11 21:21:36 cdf SpringBoard[22913]: HW kbd: Failed to set (null) as keyboard focus
Jun 11 21:21:36 cdf com.apple.CoreSimulator.SimDevice.1F821107-EF8E-403D-A571-8AA7602546DA[22897] (UIKitApplication:org.reactjs.native.example.saveleaf[0x17ae][23925]): Service exited due to signal: Abort trap: 6
Jun 11 21:21:36 cdf SpringBoard[22913]: Application 'UIKitApplication:org.reactjs.native.example.saveleaf[0x17ae]' crashed.
Jun 11 21:21:36 cdf assertiond[22918]: assertion failed: 17C88 13B143: assertiond + 12188 [93FFE0B6-5C27-387F-B32A-6EE378BBB22A]: 0x1
Jun 11 21:21:36 --- last message repeated 1 time ---
Jun 11 21:21:36 cdf assertiond[22918]: notify_suspend_pid() failed with error 7
Jun 11 21:21:36 cdf SpringBoard[22913]: ===^^^ Have not seen ZKW query result after 16 tries
Jun 11 21:21:36 cdf SpringBoard[22913]: Reply Error: Connection interrupted
Jun 11 21:23:51 cdf routined[22904]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
Index.js
-
import { AppRegistry } from 'react-native';
import App from './src/App';
import React from 'react';
AppRegistry.registerComponent('saveleaf', App());
App.js
-
import { Navigation } from 'react-native-navigation';
import { registerScreens } from './screens';
import { createStore } from 'redux';
import reducers from './redux/reducers';
import { Provider } from 'react-redux';
const store = createStore(reducers);
registerScreens(store, Provider);
const startApplication = () => {
Navigation.startSingleScreenApp({
screen: {
screen: 'app.Landing',
navigatorStyle: {
navBarHidden: true
}
}
});
}
export default startApplication;
Screens/index.js
-
import { Navigation } from 'react-native-navigation';
import Landing from './Landing';
export function registerScreens (store, Provider) {
Navigation.registerComponent('app.Landing', () => Landing, store, Provider)
};
Hey @JohnCdf , Please follow the getting started guide. There's no need to register your app with React Native's AppRegistry
Most helpful comment
Hey @JohnCdf , Please follow the getting started guide. There's no need to register your app with React Native's
AppRegistry