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 28, 2020
1 parent dd12e0f commit f67d117
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 f67d117

Please sign in to comment.