expo / ex-navigation

Route-centric navigation for React Native
997 stars 201 forks source link

How to add testID & accessibilityLabel to navigattionBar for test with appium #488

Open 2ducanhpham opened 7 years ago

gwmccull commented 7 years ago

I ended up forking the repo and adding the accessibility label prop. You just have to pass it through. My fork is for v3 https://github.com/gwmccull/ex-navigation/commit/58f4620a65c199ba213c3072b578dc7182335776

2ducanhpham commented 7 years ago

thanks @gwmccull . Miss testID for IOS

gwmccull commented 7 years ago

@2ducanhpham I'm not familiar with testID. My QA guy just needs accessibilityLabel for Appium testing.

The pattern should be easy enough for you to follow.

Maybe next week I'll look into fixing it so it passes through all of the props

2ducanhpham commented 7 years ago

thanks @gwmccull