remove header border react native 1

remove header border react native

headerStyle: {
  	elevation: 0, // remove shadow on Android
  	shadowOpacity: 0, // remove shadow on iOS
    borderBottomWidth: 0 // Just in case.
}

Here is what the above code is Doing:
1. We’re importing the StackNavigator from react-navigation.
2. We’re creating a new StackNavigator object and passing it a configuration object.
3. The configuration object has two properties:
a. routes: This is an object where the keys are the names of our routes and the values are objects that contain information about the route.
b. navigationOptions: This is an object that contains default options to use for the screens inside the navigator.

Similar Posts