rn-test-id
v1.1.5
Published
## Getting started
Downloads
11
Readme
react-native-test-id
Getting started
$ npm install rn-test-id --save
A convenient way to set test id for React-Native components
Usage
import React from 'react'
import { View, Text } from 'react-native'
import testID from 'rn-test-id'
function SuperComponent({ testId }) {
return (
<View {...testID(testId,false,false)}>
<Text>My Super Component</Text>
</View>
)
}