message: Moved navigating inside component
diff: @@ -3,14 +3,6 @@ import {StyleSheet, TouchableHighlight, Text, View, Animated} from 'react-native
  import Svg, {Path} from 'react-native-svg';
  import {NavigationBackAndroid} from 'navigation-react-native';
  -const navigating = (activeTab, goToPage) => {
  - if (activeTab === 1) {
  - goToPage(0);
  - return false;
  - }
  - return true;
  -}
  -
  export default ({activeTab, goToPage, containerWidth, scrollValue, stateNavigator}) => {
  const tabUnderlineStyle = {
  position: 'absolute',
  @@ -20,11 +12,19 @@ export default ({activeTab, goToPage, containerWidth, scrollValue, stateNavigato
  bottom: 0,
  };
  const left = scrollValue.interpolate({
  - inputRange: [0, 1, ], outputRange: [0, containerWidth / 2, ],
  + inputRange: [0, 1],
  + outputRange: [0, containerWidth / 2]
  });
  + const navigating = () => {
  + if (activeTab === 1) {
  + goToPage(0);
  + return false;
  + }
  + return true;
  + }
  return (
  <View>
  - <NavigationBackAndroid stateNavigator={stateNavigator} navigating={() => navigating(activeTab, goToPage)} />
  + <NavigationBackAndroid stateNavigator={stateNavigator} navigating={navigating} />
  <View style={styles.banner}>
  <Text style={styles.title}>Home</Text>
  </View>
  