Skip to content

Commit 1013a01

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
TextInput: include AndroidTextInputNativeComponent instead of calling requireNativeComponent directly
Summary: Include AndroidTextInputNativeComponent so we can rely on codegen and flow typing in a future diff. Reviewed By: TheSavior Differential Revision: D16903634 fbshipit-source-id: 767d7c854533d641eb7fcb2147bf584621581411
1 parent 5808973 commit 1013a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Components/TextInput/TextInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let RCTMultilineTextInputView;
3838
let RCTSinglelineTextInputView;
3939

4040
if (Platform.OS === 'android') {
41-
AndroidTextInput = requireNativeComponent('AndroidTextInput');
41+
AndroidTextInput = require('./AndroidTextInputNativeComponent').default;
4242
} else if (Platform.OS === 'ios') {
4343
RCTMultilineTextInputView = requireNativeComponent(
4444
'RCTMultilineTextInputView',

0 commit comments

Comments
 (0)