react-navigation/react-navigation

Support drawerTestIDs

Open

#7.492 aberto em 28 de jan. de 2020

Ver no GitHub
 (7 comments) (3 reactions) (0 assignees)TypeScript (4.962 forks)batch import
good first issuepackage:drawerversion-4

Métricas do repositório

Stars
 (23.189 stars)
Métricas de merge de PR
 (Mesclagem média 7d 6h) (27 fundiu PRs em 30d)

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

Guia do colaborador