Fixing TextInput related jest tests

Reviewed By: yungsters

Differential Revision: D10519823

fbshipit-source-id: 02368b670953a0275fa6495b0c73ef84403598cb
This commit is contained in:
Eli White 2018-11-07 18:42:19 -08:00 committed by Facebook Github Bot
parent ad7d8f89ef
commit 7e818aed9a
2 changed files with 3 additions and 1 deletions

View File

@ -585,6 +585,8 @@ const TextInputWithRef = React.forwardRef((props, ref) => (
<TextInput {...props} forwardedRef={ref} />
));
TextInputWithRef.displayName = 'TextInput';
const styles = StyleSheet.create({
multilineInput: {
// This default top inset makes RCTMultilineTextInputView seem as close as possible

View File

@ -37,7 +37,7 @@ jest
.mock('InitializeCore', () => {})
.mock('Image', () => mockComponent('Image'))
.mock('Text', () => mockComponent('Text', MockNativeMethods))
.mock('TextInput', () => mockComponent('TextInput'))
.mock('TextInput', () => mockComponent('TextInput', MockNativeMethods))
.mock('Modal', () => mockComponent('Modal'))
.mock('View', () => mockComponent('View', MockNativeMethods))
.mock('RefreshControl', () => jest.requireMock('RefreshControlMock'))