Skip to content

Commit

Permalink
Remove hack as PR fix: facebook/react-native#28332 is release with 0.…
Browse files Browse the repository at this point in the history
…62.2
  • Loading branch information
marecar3 committed Apr 9, 2020
1 parent 85f2d10 commit a408b21
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/native/setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { NativeModules, TextInput } from 'react-native';
import { NativeModules } from 'react-native';

jest.mock( 'react-native-gutenberg-bridge', () => {
return {
Expand Down Expand Up @@ -105,7 +105,3 @@ Object.keys( mockNativeModules ).forEach( ( module ) => {
} );
}
} );

// Hack to add the isFocused method to the mock of TextInput provided by RN implementation
// This should be remove if and when this PR is merged on React-Native repo: https://github.com/facebook/react-native/pull/28332
Object.assign( TextInput.prototype, { isFocused: jest.fn() } );

0 comments on commit a408b21

Please sign in to comment.