Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
/ react-native-testid Public archive

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

License

Notifications You must be signed in to change notification settings

tipsi/react-native-testid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-testid

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 'react-native-testid'

function SuperComponent({ testId }) {
  return (
    <View {...testID(testId)}>
      <Text>My Super Component</Text>
    </View>
  )
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published