From b9b1f0d0709c2948bf5c5d198c0c54b904218b2b Mon Sep 17 00:00:00 2001 From: Billy Mathews Date: Thu, 15 Feb 2018 09:25:44 +0000 Subject: [PATCH] Update TutorialReactNative.md (#5567) Removes redundant `import react-native` --- docs/TutorialReactNative.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/TutorialReactNative.md b/docs/TutorialReactNative.md index 6ae0a733bc93..e4924fb071a6 100644 --- a/docs/TutorialReactNative.md +++ b/docs/TutorialReactNative.md @@ -82,11 +82,9 @@ the component and capture the rendered output and create a snapshot file: ```javascript // __tests__/Intro-test.js -import 'react-native'; import React from 'react'; import Intro from '../Intro'; -// Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; test('renders correctly', () => { @@ -250,17 +248,6 @@ real device and then modeling a manual mock after the real module. If you end up mocking the same modules over and over it is recommended to define these mocks in a separate file and add it to the list of `setupFiles`. -### require react-native before the test renderer - -Currently it is required to require react-native before loading the test -renderer: - -```js -import 'react-native'; -// Require after react-native -import renderer from 'react-test-renderer'; -``` - ### `@providesModule` If you'd like to use Facebook's `@providesModule` module system through an npm