message: Defined NavigationStack inline for clarity
  Better not to share definitions with the component api so can define just the scene the stack needs
diff: @@ -18,8 +18,35 @@ notificationsNavigator.historyManager.disabled = true;
  notificationsNavigator.historyManager.stop();
  notificationsNavigator.navigate('notifications');
  -const Stack = ({navigator}) => (
  - <NavigationHandler stateNavigator={navigator}>
  +const App = () => {
  + const [notified, setNotified] = useState(false);
  + return Platform.OS === 'ios' ? (
  + <TabBar barTintColor="#fff">
  + <TabBarItem title="Home" image={require('./home.png')}>
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationStack>
  + <Scene stateKey="home"><Home /></Scene>
  + <Scene stateKey="tweet"><Tweet /></Scene>
  + <Scene stateKey="timeline"><Timeline /></Scene>
  + </NavigationStack>
  + </NavigationHandler>
  + </TabBarItem>
  + <TabBarItem
  + title="Notifications"
  + image={require('./notifications.png')}
  + badge={!notified ? '' + getFollows().length : null}
  + onPress={() => {setNotified(true)}}>
  + <NavigationHandler stateNavigator={notificationsNavigator}>
  + <NavigationStack>
  + <Scene stateKey="notifications"><Notifications /></Scene>
  + <Scene stateKey="tweet"><Tweet /></Scene>
  + <Scene stateKey="timeline"><Timeline /></Scene>
  + </NavigationStack>
  + </NavigationHandler>
  + </TabBarItem>
  + </TabBar>
  + ) : (
  + <NavigationHandler stateNavigator={stateNavigator}>
  <NavigationStack
  crumbStyle={from => from ? 'scale_in' : 'scale_out'}
  unmountStyle={from => from ? 'slide_in' : 'slide_out'}
  @@ -39,33 +66,13 @@ const Stack = ({navigator}) => (
  {scene}
  </View>
  )}>
  - {Platform.OS !== 'ios' && <Scene stateKey="home"><Tabs /></Scene>}
  - {Platform.OS === 'ios' && <Scene stateKey="home"><Home /></Scene>}
  + <Scene stateKey="home"><Tabs /></Scene>
  <Scene stateKey="notifications"><Notifications /></Scene>
  <Scene stateKey="tweet"><Tweet /></Scene>
  <Scene stateKey="timeline"><Timeline /></Scene>
  </NavigationStack>
  </NavigationHandler>
  );
  -
  -const App = () => {
  - const [notified, setNotified] = useState(false);
  - return Platform.OS === 'ios' ? (
  - <TabBar barTintColor="#fff">
  - <TabBarItem title="Home" image={require('./home.png')}>
  - <Stack navigator={stateNavigator} />
  - </TabBarItem>
  - <TabBarItem
  - title="Notifications"
  - image={require('./notifications.png')}
  - badge={!notified ? '' + getFollows().length : null}
  - onPress={() => {setNotified(true)}}>
  - <Stack navigator={notificationsNavigator} />
  - </TabBarItem>
  - </TabBar>
  - ) : (
  - <Stack navigator={stateNavigator} />
  - );
  };
  export default App;
  