This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { View } from "react-native"; | |
import Home from "./screens/Home"; | |
import DashboardTabRoutes from "./screens/Dashboard/Routes"; | |
import { createStackNavigator } from "react-navigation"; | |
import CustomHeader from "./components/CustomHeader"; | |
const Routes = createStackNavigator( | |
{ | |
Home: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Header } from "react-navigation"; | |
import { View, Platform } from "react-native"; | |
import LinearGradient from "react-native-linear-gradient"; | |
const CustomHeader = props => { | |
return ( | |
<View | |
style={{ | |
height: 56, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { View } from "react-native"; | |
import { | |
TabNavigator, | |
TabBarBottom, | |
createStackNavigator | |
} from "react-navigation"; | |
import Icon from "../../components/Icon"; | |
import Tab1Screen from "./Tabs/Tab1Screen"; | |
import Tab1Details from "./Tabs/Tab1Details"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigationOptions: ({ navigation }) => { | |
const { routeName, routes } = navigation.state; | |
let params = routes && routes[1] && routes[1].params; | |
return { | |
tabBarVisible: | |
params && params.hideTabBar != null ? !params.hideTabBar : true, | |
swipeEnabled: | |
params && params.hideTabBar != null ? !params.hideTabBar : true | |
}; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { View } from "react-native"; | |
import Home from "./screens/Home"; | |
import OTP from "./screens/OTP"; | |
import { createStackNavigator } from "react-navigation"; | |
const Routes = createStackNavigator( | |
{ | |
Home: { | |
screen: Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
headerStyle: { | |
backgroundColor: 'black', | |
borderWidth: 1, | |
borderBottomColor: 'white' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
headerTitleStyle: { | |
fontWeight: "bold", | |
color: "#fff", | |
zIndex: 1, | |
fontSize: 18, | |
lineHeight: 23, | |
fontFamily: "CircularStd-Bold" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DashboardTabRoutes = TabNavigator({ | |
Tab1: createStackNavigator({ | |
Tab1: { | |
screen: Tab1Screen, | |
navigationOptions: { | |
headerLeft: null, | |
headerTitle: "Tab 1 Screen" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabBarOptions: { | |
activeTintColor: "#6200EE", | |
inactiveTintColor: "#858585", | |
style: { | |
height: 60, | |
paddingVertical: 5, | |
backgroundColor: "#fff" | |
}, | |
labelStyle: { | |
fontSize: 12, |
OlderNewer