|
@@ -23,7 +23,7 @@ class WelcomeScreen extends Component {
|
23
|
23
|
this.onClickShowModal = this.onClickShowModal.bind(this);
|
24
|
24
|
this.onClickLifecycleScreen = this.onClickLifecycleScreen.bind(this);
|
25
|
25
|
this.onClickPushOptionsScreen = this.onClickPushOptionsScreen.bind(this);
|
26
|
|
- this.onClickPushNativeComponent = this.onClickPushNativeComponent.bind(this);
|
|
26
|
+ this.onClickPushExternalComponent = this.onClickPushExternalComponent.bind(this);
|
27
|
27
|
this.onClickPushOrientationMenuScreen = this.onClickPushOrientationMenuScreen.bind(this);
|
28
|
28
|
this.onClickBackHandler = this.onClickBackHandler.bind(this);
|
29
|
29
|
this.onClickPushTopTabsScreen = this.onClickPushTopTabsScreen.bind(this);
|
|
@@ -41,7 +41,7 @@ class WelcomeScreen extends Component {
|
41
|
41
|
<Button title='Static Lifecycle Events' testID={testIDs.PUSH_STATIC_LIFECYCLE_BUTTON} onPress={this.onClickShowStaticLifecycleOverlay} />
|
42
|
42
|
<Button title='Push' testID={testIDs.PUSH_BUTTON} onPress={this.onClickPush} />
|
43
|
43
|
<Button title='Push Options Screen' testID={testIDs.PUSH_OPTIONS_BUTTON} onPress={this.onClickPushOptionsScreen} />
|
44
|
|
- <Button title='Push Native Component' testID={testIDs.PUSH_NATIVE_COMPONENT_BUTTON} onPress={this.onClickPushNativeComponent} />
|
|
44
|
+ <Button title='Push Native Component' testID={testIDs.PUSH_NATIVE_COMPONENT_BUTTON} onPress={this.onClickPushExternalComponent} />
|
45
|
45
|
{Platform.OS === 'android' && <Button title='Push Top Tabs screen' testID={testIDs.PUSH_TOP_TABS_BUTTON} onPress={this.onClickPushTopTabsScreen} />}
|
46
|
46
|
{Platform.OS === 'android' && <Button title='Back Handler' testID={testIDs.BACK_HANDLER_BUTTON} onPress={this.onClickBackHandler} />}
|
47
|
47
|
<Button title='Show Modal' testID={testIDs.SHOW_MODAL_BUTTON} onPress={this.onClickShowModal} />
|
|
@@ -233,10 +233,10 @@ class WelcomeScreen extends Component {
|
233
|
233
|
});
|
234
|
234
|
}
|
235
|
235
|
|
236
|
|
- async onClickPushNativeComponent() {
|
|
236
|
+ async onClickPushExternalComponent() {
|
237
|
237
|
await Navigation.push(this.props.componentId, {
|
238
|
|
- nativeComponent: {
|
239
|
|
- name: 'RNNCustomViewController',
|
|
238
|
+ externalComponent: {
|
|
239
|
+ className: 'RNNCustomViewController',
|
240
|
240
|
options: {
|
241
|
241
|
topBar: {
|
242
|
242
|
title: 'pushed',
|