Testing
  • References/JavaScript/React Native/Guides

Running Tests and Contributing The React Native repo has several tests you can run to verify you haven't

2025-01-10 15:47:30
NavigatorIOS#push()
  • References/JavaScript/React Native/Components: NavigatorIOS

push(route: { component: Function; title: string; passProps?: Object; backButtonTitle?: string; backButtonIcon?: Object; leftButtonTitle?: string; leftButtonIcon

2025-01-10 15:47:30
NavigatorIOS#replacePrevious()
  • References/JavaScript/React Native/Components: NavigatorIOS

replacePrevious(route: { component: Function; title: string; passProps?: Object; backButtonTitle?: string; backButtonIcon?: Object; leftButtonTitle?:

2025-01-10 15:47:30
StatusBarIOS#setHidden()
  • References/JavaScript/React Native/APIs

setHidden(hidden, animation?)

2025-01-10 15:47:30
Navigator#popToRoute()
  • References/JavaScript/React Native/Components: Navigator

popToRoute(route) Pop to a particular scene, as specified by its route. All scenes after it will be unmounted

2025-01-10 15:47:30
View#onLayout
  • References/JavaScript/React Native/Components: View

onLayout function Invoked on mount and layout changes with {nativeEvent: { layout: {x, y, width

2025-01-10 15:47:30
TextInput#placeholderTextColor
  • References/JavaScript/React Native/Components: TextInput

placeholderTextColor string The text color of the placeholder string

2025-01-10 15:47:30
ListView#scrollTo()
  • References/JavaScript/React Native/Components: ListView

scrollTo(...args) Scrolls to a given x, y offset, either immediately or with a smooth animation. See

2025-01-10 15:47:30
Text#testID
  • References/JavaScript/React Native/Components: Text

testID string Used to locate this view in end-to-end tests.

2025-01-10 15:47:30
Image.prefetch()
  • References/JavaScript/React Native/Components: Image

static prefetch(url: string) Prefetches a remote image for later use by downloading

2025-01-10 15:47:30