Suppose I have five items in drawer navigation. I want to add separator after three items. How to add this using react-navigation.
相关问题
- 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
As mentioned vonovak, you could achieve this by using
contentComponent
which allows complete customization of drawer. For this you will need to create custom component which will override default drawer. Code sample:`
`
`
`
you'll need to use the
contentComponent
prop to make custom changes. Check out the docs