Skip to content

A convenient way to set test id for React-Native components

Notifications You must be signed in to change notification settings

ashrithks/rn-test-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
  )
}

About

A convenient way to set test id for React-Native components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published