Search in sources :

Example 1 with NavigationActivity

use of com.reactnativenavigation.NavigationActivity in project react-native-navigation by wix.

the class NavigationModule method onCatalystInstanceDestroy.

@Override
public void onCatalystInstanceDestroy() {
    final NavigationActivity navigationActivity = activity();
    if (navigationActivity != null) {
        navigationActivity.onCatalystInstanceDestroy();
    }
    super.onCatalystInstanceDestroy();
}
Also used : NavigationActivity(com.reactnativenavigation.NavigationActivity)

Example 2 with NavigationActivity

use of com.reactnativenavigation.NavigationActivity in project react-native-navigation by wix.

the class NavigationModuleTest method mockActivity.

private NavigationActivity mockActivity() {
    NavigationActivity activity = mock(NavigationActivity.class);
    when(activity.getNavigator()).thenReturn(navigator);
    return activity;
}
Also used : NavigationActivity(com.reactnativenavigation.NavigationActivity)

Aggregations

NavigationActivity (com.reactnativenavigation.NavigationActivity)2