Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved to a Single React Root #245

Merged
merged 134 commits into from
Jun 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
46b69d0
Created NavigationStack component
grahammendick Jun 1, 2019
d085ec7
Rendered native NavigationStack container
grahammendick Jun 1, 2019
3f914c9
Wrapped scene in native component
grahammendick Jun 1, 2019
79fd47f
Moved native component to outside
grahammendick Jun 1, 2019
9651e0c
Added native Scene and NavigationStack files
grahammendick Jun 1, 2019
013f433
Revert "Added native Scene and NavigationStack files"
grahammendick Jun 1, 2019
0a7eddb
Added Scene and NavigationStack native files
grahammendick Jun 1, 2019
018fbfd
Added basic .h :& .m view and manager code
grahammendick Jun 1, 2019
0680eb0
Reverted AppDelegate to init'ed version
grahammendick Jun 1, 2019
4545719
Rendered NavigationStack from app
grahammendick Jun 1, 2019
ed58ae4
Removed NavigationModule render
grahammendick Jun 1, 2019
127ab2e
Pushed subview onto navigationController
grahammendick Jun 1, 2019
35da2e1
Removed subview cache, doesn't work
grahammendick Jun 1, 2019
8caffc7
Listened for ios back and navigated back
grahammendick Jun 1, 2019
d105964
Added the super all to insertReactSubview
grahammendick Jun 1, 2019
25be75c
Popped to prev controller when subview removed
grahammendick Jun 1, 2019
6aa9bae
Sized the navigationController frame
grahammendick Jun 1, 2019
1a36c37
Set view directly (thought it didn't work)
grahammendick Jun 1, 2019
acd58b9
Revert "Set view directly (thought it didn't work)"
grahammendick Jun 1, 2019
9106078
Kepts subview visible during pop
grahammendick Jun 1, 2019
edb9cca
Set view on controller directly
grahammendick Jun 1, 2019
6d90f83
Renamed scene prop and state types
grahammendick Jun 1, 2019
fad512a
Added scene title prop and set on controller
grahammendick Jun 1, 2019
56d2b00
Pushed and popped scenes after all updated
grahammendick Jun 2, 2019
3010a8d
Hooked up the peekNavigate
grahammendick Jun 2, 2019
1149790
Renamed to match ios naming convention
grahammendick Jun 2, 2019
5370f75
Only process change if in the stack
grahammendick Jun 2, 2019
e3a7604
Deleted addNavigateHandlers
grahammendick Jun 2, 2019
957f80b
Deleted redundant module and related files
grahammendick Jun 2, 2019
07dc7aa
Removed addNavigateHandlers call
grahammendick Jun 2, 2019
bd63b5b
Styled with StyleSheet
grahammendick Jun 2, 2019
7ded5f0
Set title even if no navigationEvent in state
grahammendick Jun 2, 2019
b21bbff
Added title prop to NavigationStack
grahammendick Jun 2, 2019
50edb3a
Added locking mechanism for ios back
grahammendick Jun 2, 2019
1bf1d4b
Wrote longhand styles for clarity
grahammendick Jun 2, 2019
857c116
Added the native java views and managers
grahammendick Jun 3, 2019
818a4fe
Registered stack and scene managers
grahammendick Jun 3, 2019
0e1d0c5
Started activity when second view added
grahammendick Jun 3, 2019
617084b
Finished Activity when SceneView removed
grahammendick Jun 3, 2019
4139cdf
Added touch handling to launched activity
grahammendick Jun 3, 2019
8d34e94
Removed unnecessary dummy view
grahammendick Jun 3, 2019
6548480
Tweaked format
grahammendick Jun 3, 2019
271188b
Added override attribute
grahammendick Jun 3, 2019
a83987a
Alternated activities for back navigation
grahammendick Jun 3, 2019
8000ea9
Reverted accidental commit
grahammendick Jun 3, 2019
79ca66d
Tidied up parameter names
grahammendick Jun 3, 2019
3679be6
Cached intent and navigated back to it
grahammendick Jun 3, 2019
bf6ea52
Received new intent on back navigation
grahammendick Jun 3, 2019
6af225c
Changed fluent navigation then back check
grahammendick Jun 3, 2019
d75183d
Changed to static to match other inner class
grahammendick Jun 3, 2019
6626b3c
Reset activities on load
grahammendick Jun 3, 2019
349c19e
Created currentActivity variable
grahammendick Jun 3, 2019
680d3b9
Tweaked format and renamed to sceneItems
grahammendick Jun 3, 2019
4fdfbfc
Added exit and enter Anim props
grahammendick Jun 4, 2019
cc03667
Removed getScenes becasue only need crumb
grahammendick Jun 4, 2019
7659b74
Calculated enter/exit anim when scene added
grahammendick Jun 4, 2019
09aa374
Calculated enter/exit anim when scene removed
grahammendick Jun 4, 2019
0ae3ba2
Moved animation props up to NavigationStack
grahammendick Jun 4, 2019
4819e53
Removed redundant view type
grahammendick Jun 4, 2019
c03e0ac
Animated shared elements
grahammendick Jun 4, 2019
c52c31b
Corrected default animations
grahammendick Jun 4, 2019
6acf2c5
Renamed to avoid clash with method name
grahammendick Jun 4, 2019
1b0b447
Restarted on dev tools reload
grahammendick Jun 5, 2019
46316c0
Navigated to main if not already there
grahammendick Jun 5, 2019
fc2e5fe
Tweaked format
grahammendick Jun 5, 2019
ab85663
Inherited from ReactActivity
grahammendick Jun 5, 2019
0b51bdb
Ensured React Native clears tags cache
grahammendick Jun 5, 2019
27e2514
Removed styles because bin not added view
grahammendick Jun 5, 2019
0dbbf4b
Typed SceneView on SceneItem
grahammendick Jun 5, 2019
efb8ab0
Removed getter and setter clutter
grahammendick Jun 5, 2019
7b1a1b3
Removed NavigationModule
grahammendick Jun 5, 2019
7c250ba
Detaulted to state title only if no title prop
grahammendick Jun 5, 2019
b8e2d61
Deleted redundant spaces
grahammendick Jun 5, 2019
16433f5
Added skeleton tab bar files
grahammendick Jun 5, 2019
f8ca40b
Added basic tab bar view and manager code
grahammendick Jun 5, 2019
54a102d
Removed navigation ios setup
grahammendick Jun 5, 2019
520f0a5
Created the twitter tab bar component layout
grahammendick Jun 5, 2019
8456404
Added basic tab bar ios components
grahammendick Jun 5, 2019
b86052b
Added tab bar item to navigation controller
grahammendick Jun 5, 2019
dd0f21c
Added nav controllers to tab controllers
grahammendick Jun 5, 2019
2e153fe
Stopped the nav stacks sharing the real estate
grahammendick Jun 5, 2019
ac8186e
Resized Scene when orientation changes
grahammendick Jun 5, 2019
b75279e
Set dynamic screen titles
grahammendick Jun 5, 2019
9e9790a
Shared stack across tabs
grahammendick Jun 5, 2019
72ed16f
Removed TabBarItem as child from NavStack
grahammendick Jun 5, 2019
0686b83
Corrected crumb
grahammendick Jun 5, 2019
3d8ae2b
Moved flex style into component
grahammendick Jun 5, 2019
2e1c900
Removed redundant shadow view
grahammendick Jun 5, 2019
ebd82b0
Inserted actual subview
grahammendick Jun 5, 2019
68d068b
Prevented error when double tap back
grahammendick Jun 6, 2019
4c0ce92
Wrapped NavigationStack in TabBarItem
grahammendick Jun 6, 2019
6af1e40
Added TabBarItem props
grahammendick Jun 6, 2019
a6b7db4
Avoided setting screen and tab title together
grahammendick Jun 6, 2019
d5ee6c9
Added onPress TabBarItem prop
grahammendick Jun 6, 2019
9c31e1f
Rendered without tabs on android
grahammendick Jun 6, 2019
62a4da1
Created function that returns scene title
grahammendick Jun 6, 2019
a50083a
Fixed unmount styles
grahammendick Jun 6, 2019
23a4240
Removed redundant title prop on android
grahammendick Jun 6, 2019
f472d5b
Tweaked format
grahammendick Jun 6, 2019
5129adf
Prevented crash on orientation change
grahammendick Jun 6, 2019
21347f1
Used existing view variable
grahammendick Jun 6, 2019
6ffc37d
Gave ViewPager children unique keys
grahammendick Jun 6, 2019
76e72bf
Tweaked format
grahammendick Jun 6, 2019
b138d66
Tweaked format
grahammendick Jun 7, 2019
390556f
Updated web sample to navigation stack
grahammendick Jun 7, 2019
01fb5ba
Removed unused var
grahammendick Jun 7, 2019
3c8b793
Added state param
grahammendick Jun 7, 2019
43a7f7f
Put back deep linking on ios
grahammendick Jun 7, 2019
4820ea1
Got redux sample working with navigaiton stack
grahammendick Jun 7, 2019
1a51f35
Added renderScene prop
grahammendick Jun 7, 2019
81ff1ec
Cleared controller delegates on dealloc
grahammendick Jun 8, 2019
e19acd2
Updated AppDelegate to match RN version 0.59.8
grahammendick Jun 8, 2019
655f5d1
Pevented error when empty state context
grahammendick Jun 8, 2019
19d1ef6
Waited to load notifictions until tab pressed
grahammendick Jun 8, 2019
163321a
Prevented error navigating back over fluent scene
grahammendick Jun 8, 2019
d050f3e
Removed launchMode overrides
grahammendick Jun 8, 2019
6ffc04d
Removed launchMode from medley sample
grahammendick Jun 8, 2019
f84e9cc
Removed launchMode from other samples
grahammendick Jun 8, 2019
043072a
Missed this from previous launchMode removal checkins
grahammendick Jun 8, 2019
22fe29e
Skipped shared elements if fluently navigated
grahammendick Jun 8, 2019
b1bcfd5
Revert "Skipped shared elements if fluently navigated"
grahammendick Jun 8, 2019
1bc5f6d
Revert "Revert "Skipped shared elements if fluently navigated""
grahammendick Jun 8, 2019
92a149b
Attached shared element after new intent
grahammendick Jun 8, 2019
696df81
Got rid of detach insteand of previous fix
grahammendick Jun 8, 2019
ec297b3
Added NavigationStack typings
grahammendick Jun 9, 2019
7d0d26d
Defined Tab Bar IOS typings and tests
grahammendick Jun 9, 2019
1fc7f4c
Tweaked format
grahammendick Jun 9, 2019
bc55541
Tweaked format
grahammendick Jun 9, 2019
555eb42
Tweaked format
grahammendick Jun 9, 2019
5afd17e
Changed typings descriptions
grahammendick Jun 9, 2019
0387350
Copied typings into npm package
grahammendick Jun 9, 2019
3961630
Fixed shared els when navigating back
grahammendick Jun 9, 2019
d5cd11c
Tweaked format
grahammendick Jun 9, 2019
61a311f
Removed shared check now separate activity types
grahammendick Jun 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions NavigationReactNative/sample/medley/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import {StateNavigator} from 'navigation';
import {NavigationHandler} from 'navigation-react';
import {addNavigateHandlers, Scene} from 'navigation-react-native';
import {NavigationStack} from 'navigation-react-native';
import Direction from './Direction';

const stateNavigator = new StateNavigator([
Expand All @@ -27,10 +27,11 @@ west.getCrumbStyle = from => from ? 'west_crumb_in' : 'west_crumb_out';
west.getUnmountStyle = from => from ? 'west_in' : 'west_out';

stateNavigator.navigate('north');
addNavigateHandlers(stateNavigator);

export default ({crumb}) => (
export default () => (
<NavigationHandler stateNavigator={stateNavigator}>
<Scene crumb={crumb} />
<NavigationStack
crumbStyle={(from, state) => state.getCrumbStyle(from)}
unmountStyle={(from, state) => state.getUnmountStyle(from)} />
</NavigationHandler>
);
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
Expand Down
29 changes: 5 additions & 24 deletions NavigationReactNative/sample/redux/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react';
import {NativeEventEmitter, NativeModules} from 'react-native';
import {StateNavigator} from 'navigation';
import {NavigationHandler} from 'navigation-react';
import {addNavigateHandlers, Scene} from 'navigation-react-native';
import {NavigationStack} from 'navigation-react-native';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import reducer from './reducer';
import Blinkers from './Blinkers';
import People from './People';
import Person from './Person';

Expand All @@ -21,29 +19,12 @@ person.renderScene = ({id}) => <Person id={id} />;

const store = createStore(reducer);

stateNavigator.onNavigate(() => {
store.dispatch({
type: "NAVIGATE",
payload: {crumb: stateNavigator.stateContext.crumbs.length}
});
});
var navigationEmitter = new NativeEventEmitter(NativeModules.NavigationModule);
navigationEmitter.addListener('PeekNavigate', ({crumb}) => {
store.dispatch({
type: "PEEK",
payload: {crumb}
});
});

stateNavigator.navigate('people');
addNavigateHandlers(stateNavigator);

export default ({crumb}) => (
export default () => (
<Provider store={store}>
<Blinkers crumb={crumb}>
<NavigationHandler stateNavigator={stateNavigator}>
<Scene crumb={crumb} />
</NavigationHandler>
</Blinkers>
<NavigationHandler stateNavigator={stateNavigator}>
<NavigationStack />
</NavigationHandler>
</Provider>
);
26 changes: 0 additions & 26 deletions NavigationReactNative/sample/redux/Blinkers.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
Expand Down
5 changes: 1 addition & 4 deletions NavigationReactNative/sample/redux/ios/redux/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
#import <React/RCTBridge.h>
#import "NVApplicationHostDelegate.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, NVApplicationHostDelegate>
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>

@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, strong) RCTBridge *bridge;

@end
18 changes: 9 additions & 9 deletions NavigationReactNative/sample/redux/ios/redux/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "NVSceneController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

NSString *title = @"People";
NSString *appKey = @"redux";
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"redux"
initialProperties:nil];

UIViewController *sceneController = [[NVSceneController alloc] init:0 tab:0 title:title appKey:appKey];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:sceneController];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

self.window.rootViewController = navigationController;
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
Expand Down
47 changes: 32 additions & 15 deletions NavigationReactNative/sample/twitter/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import {Platform} from 'react-native';
import {StateNavigator} from 'navigation';
import {NavigationHandler} from 'navigation-react';
import {addNavigateHandlers, Scene} from 'navigation-react-native';
import {NavigationStack, TabBarIOS, TabBarItemIOS} from 'navigation-react-native';
import Home from './Home';
import Notifications from './Notifications';
import Tweet from './Tweet';
Expand All @@ -20,22 +21,38 @@ notifications.renderScene = () => <Notifications follows={getFollows()} />;
tweet.renderScene = ({id}) => <Tweet tweet={getTweet(id)} />;
timeline.renderScene = ({id}) => <Timeline timeline={getTimeline(id)} />;

for(var key in stateNavigator.states) {
var state = stateNavigator.states[key];
state.getCrumbStyle = from => from ? 'scale_in' : 'scale_out';
state.getUnmountStyle = from => from ? 'slide_in' : 'slide_out';
}

timeline.getTitle = ({sceneTitle}) => sceneTitle;
var getSceneTitle = (state, data) => {
var {getTitle, title} = state;
return getTitle ? getTitle(data) : title;
}

var stateNavigators = [stateNavigator, new StateNavigator(stateNavigator)];
var notificationsNavigator = new StateNavigator(stateNavigator);
stateNavigator.navigate('home');
stateNavigators[1].navigate('notifications');

addNavigateHandlers(stateNavigators);

export default ({crumb, tab = 0}) => (
<NavigationHandler stateNavigator={stateNavigators[tab]}>
<Scene crumb={crumb} tab={tab} />
</NavigationHandler>
export default () => (
Platform.OS === 'ios' ? (
<TabBarIOS>
<TabBarItemIOS title="Home">
<NavigationHandler stateNavigator={stateNavigator}>
<NavigationStack title={getSceneTitle} />
</NavigationHandler>
</TabBarItemIOS>
<TabBarItemIOS title="Notifications" onPress={() => {
if (!notificationsNavigator.stateContext.state)
notificationsNavigator.navigate('notifications');
}}>
<NavigationHandler stateNavigator={notificationsNavigator}>
<NavigationStack title={getSceneTitle} />
</NavigationHandler>
</TabBarItemIOS>
</TabBarIOS>
) : (
<NavigationHandler stateNavigator={stateNavigator}>
<NavigationStack
crumbStyle={from => from ? 'scale_in' : 'scale_out'}
unmountStyle={from => from ? 'slide_in' : 'slide_out'}>
</NavigationStack>
</NavigationHandler>
)
);
2 changes: 1 addition & 1 deletion NavigationReactNative/sample/twitter/Home.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ({tweets, follows}) => (
<Tweets tweets={tweets} />
</ScrollView>
</View>
<View key={1}>
<View key={2}>
<ScrollView style={styles.view}>
<Notifications follows={follows} />
</ScrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
*/

#import <UIKit/UIKit.h>
#import <React/RCTBridge.h>
#import "NVApplicationHostDelegate.h"

@interface AppDelegate : UIResponder <NVApplicationHostDelegate>
@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, strong) RCTBridge *bridge;

@end
35 changes: 17 additions & 18 deletions NavigationReactNative/sample/twitter/ios/twitter/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,32 @@
*/

#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "NVSceneController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
NSURL *jsCodeLocation;

#ifdef DEBUG
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"twitter"
initialProperties:nil
launchOptions:launchOptions];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

self.bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation moduleProvider:nil launchOptions:launchOptions];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

NSArray *tabs = @[@"Home", @"Notifications"];
NSString *appKey = @"twitter";

NSMutableArray *controllers = [[NSMutableArray alloc] init];
for(NSInteger tab = 0; tab < [tabs count]; tab++) {
UIViewController *sceneController = [[NVSceneController alloc] init:0 tab:tab title:tabs[tab] appKey:appKey];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:sceneController];
navigationController.tabBarItem = [[UITabBarItem alloc] initWithTitle:tabs[tab] image:nil tag:tab];
[controllers addObject:navigationController];
}

UITabBarController *tabBarController = [[UITabBarController alloc] init];
[tabBarController setViewControllers:controllers];
self.window.rootViewController = tabBarController;
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
Expand Down
11 changes: 3 additions & 8 deletions NavigationReactNative/sample/web/App.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import React from 'react';
import {NavigationHandler} from 'navigation-react';
import {addNavigateHandlers, Scene} from 'navigation-react-native';
import {NavigationStack} from 'navigation-react-native';
import createStateNavigator from './createStateNavigator';

var stateNavigator = createStateNavigator();

const {detail} = stateNavigator.states;
detail.getSharedElements = ({color}) => [color];

stateNavigator.navigate('grid');
addNavigateHandlers(stateNavigator);

export default ({crumb}) => (
export default () => (
<NavigationHandler stateNavigator={stateNavigator}>
<Scene crumb={crumb} />
<NavigationStack sharedElements={(_, {color}) => color && [color]} />
</NavigationHandler>
);
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
Expand Down
5 changes: 1 addition & 4 deletions NavigationReactNative/sample/web/ios/web/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
*/

#import <UIKit/UIKit.h>
#import <React/RCTBridge.h>
#import "NVApplicationHostDelegate.h"

@interface AppDelegate : UIResponder <NVApplicationHostDelegate>
@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, strong) RCTBridge *bridge;

@end