How do I hide the shadow under react-navigation headers?
They look like this.
相关问题
- React Native Inline style for multiple Text in sin
- How Do I Convert Image URI into Byte Expo
- ApolloClient from apollo-boost attemped to assign
- Implementing ssl pinning in a react-native applica
- React-Native: Enable Performance Monitor in produc
相关文章
- Why do we have to call `.done()` at the end of a p
- Remove expo from react native
- React Native - Dynamic Image Source
- “Unfortunately, app has stopped” error with buildi
- eslint Parsing error: Unexpected token =
- How to determine JS bottlenecks in React Native co
- How to override navigation options in functional c
- PanResponder snaps Animated.View back to original
You can try this, and it worked for me !
The shadow is achieved via elevation, use:
The following works for me as the original Stylesheet uses "borderBottomWidth" on iOS:
Try passing
cardStyle: { shadowColor: 'transparent' }
As per this question React Navigation Stack Navigator default shadow styling
Add the following to the navigationOptions header style.
The documentation isn't great yet, but you can learn about navigationOptions in the React Navigation Docs.
This works for me:
or