Skip to content

Commit

Permalink
docs: Rectify typo in tutorialReactNative (#10930)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryCollett authored Dec 8, 2020
1 parent 6ced9bb commit ca47512
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/TutorialReactNative.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Or if you'd like to create your own manual mock, you can do something like this:
```js
jest.mock('Text', () => {
const RealComponent = jest.requireActual('Text');
const React = require('React');
const React = require('react');
class Text extends React.Component {
render() {
return React.createElement('Text', this.props, this.props.children);
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-22.x/TutorialReactNative.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Or if you'd like to create your own manual mock, you can do something like this:
```js
jest.mock('Text', () => {
const RealComponent = jest.requireActual('Text');
const React = require('React');
const React = require('react');
class Text extends React.Component {
render() {
return React.createElement('Text', this.props, this.props.children);
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/TutorialReactNative.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Or if you'd like to create your own manual mock, you can do something like this:
```js
jest.mock('Text', () => {
const RealComponent = jest.requireActual('Text');
const React = require('React');
const React = require('react');
class Text extends React.Component {
render() {
return React.createElement('Text', this.props, this.props.children);
Expand Down

0 comments on commit ca47512

Please sign in to comment.