react-navigation/react-navigation

Support drawerTestIDs

Open

#7 492 ouverte le 28 janv. 2020

Voir sur GitHub
 (7 commentaires) (3 réactions) (0 assignés)TypeScript (23 189 stars) (4 962 forks)batch import
good first issuepackage:drawerversion-4

Description

Current Behavior

  • I am testing with detox, and want a way to target a drawer option by testID

Expected Behavior

  • I should be able to add drawerTestID as a navigationOptions setting that will set the testID appropriately on the touchable element.

How to reproduce

  • N/A

Your Environment

software version
iOS or Android iPhone 11
react-navigation 4.0.10
react-navigation-drawer 2.3.3
react-native-gesture-handler 1.5.3
react-native-reanimated 1.4.0
react-native-screens 2.0.0-alpha.12
react-native 0.61.4
expo 36.02
node 10
npm or yarn yarn 1.21.1

Guide contributeur