@@ -17,7 +17,10 @@ import type {
17
17
Int32 ,
18
18
WithDefault ,
19
19
} from '../../Types/CodegenTypes' ;
20
- import type { HostComponent } from '../../Renderer/shims/ReactNativeTypes' ;
20
+ import type {
21
+ HostComponent ,
22
+ PartialViewConfig ,
23
+ } from '../../Renderer/shims/ReactNativeTypes' ;
21
24
import type {
22
25
TextStyleProp ,
23
26
ViewStyleProp ,
@@ -593,123 +596,125 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
593
596
supportedCommands : [ 'focus' , 'blur' , 'setTextAndSelection' ] ,
594
597
} ) ;
595
598
596
- let AndroidTextInputNativeComponent = NativeComponentRegistry . get < NativeProps > (
597
- 'AndroidTextInput' ,
598
- ( ) => ( {
599
- uiViewClassName : 'AndroidTextInput' ,
600
- bubblingEventTypes : {
601
- topBlur : {
602
- phasedRegistrationNames : {
603
- bubbled : 'onBlur' ,
604
- captured : 'onBlurCapture' ,
605
- } ,
606
- } ,
607
- topEndEditing : {
608
- phasedRegistrationNames : {
609
- bubbled : 'onEndEditing' ,
610
- captured : 'onEndEditingCapture' ,
611
- } ,
599
+ export const __INTERNAL_VIEW_CONFIG : PartialViewConfig = {
600
+ uiViewClassName : 'AndroidTextInput' ,
601
+ bubblingEventTypes : {
602
+ topBlur : {
603
+ phasedRegistrationNames : {
604
+ bubbled : 'onBlur' ,
605
+ captured : 'onBlurCapture' ,
612
606
} ,
613
- topFocus : {
614
- phasedRegistrationNames : {
615
- bubbled : 'onFocus' ,
616
- captured : 'onFocusCapture' ,
617
- } ,
618
- } ,
619
- topKeyPress : {
620
- phasedRegistrationNames : {
621
- bubbled : 'onKeyPress' ,
622
- captured : 'onKeyPressCapture' ,
623
- } ,
607
+ } ,
608
+ topEndEditing : {
609
+ phasedRegistrationNames : {
610
+ bubbled : 'onEndEditing' ,
611
+ captured : 'onEndEditingCapture' ,
624
612
} ,
625
- topSubmitEditing : {
626
- phasedRegistrationNames : {
627
- bubbled : 'onSubmitEditing' ,
628
- captured : 'onSubmitEditingCapture ' ,
629
- } ,
613
+ } ,
614
+ topFocus : {
615
+ phasedRegistrationNames : {
616
+ bubbled : 'onFocus ' ,
617
+ captured : 'onFocusCapture' ,
630
618
} ,
631
- topTextInput : {
632
- phasedRegistrationNames : {
633
- bubbled : 'onTextInput' ,
634
- captured : 'onTextInputCapture ' ,
635
- } ,
619
+ } ,
620
+ topKeyPress : {
621
+ phasedRegistrationNames : {
622
+ bubbled : 'onKeyPress ' ,
623
+ captured : 'onKeyPressCapture' ,
636
624
} ,
637
625
} ,
638
- directEventTypes : {
639
- topScroll : {
640
- registrationName : 'onScroll' ,
626
+ topSubmitEditing : {
627
+ phasedRegistrationNames : {
628
+ bubbled : 'onSubmitEditing' ,
629
+ captured : 'onSubmitEditingCapture' ,
641
630
} ,
642
631
} ,
643
- validAttributes : {
644
- maxFontSizeMultiplier : true ,
645
- adjustsFontSizeToFit : true ,
646
- minimumFontScale : true ,
647
- autoFocus : true ,
648
- placeholder : true ,
649
- inlineImagePadding : true ,
650
- contextMenuHidden : true ,
651
- textShadowColor : { process : require ( '../../StyleSheet/processColor' ) } ,
652
- maxLength : true ,
653
- selectTextOnFocus : true ,
654
- textShadowRadius : true ,
655
- underlineColorAndroid : {
656
- process : require ( '../../StyleSheet/processColor' ) ,
632
+ topTextInput : {
633
+ phasedRegistrationNames : {
634
+ bubbled : 'onTextInput' ,
635
+ captured : 'onTextInputCapture' ,
657
636
} ,
658
- textDecorationLine : true ,
659
- blurOnSubmit : true ,
660
- textAlignVertical : true ,
661
- fontStyle : true ,
662
- textShadowOffset : true ,
663
- selectionColor : { process : require ( '../../StyleSheet/processColor' ) } ,
664
- selection : true ,
665
- placeholderTextColor : { process : require ( '../../StyleSheet/processColor' ) } ,
666
- importantForAutofill : true ,
667
- lineHeight : true ,
668
- textTransform : true ,
669
- returnKeyType : true ,
670
- keyboardType : true ,
671
- multiline : true ,
672
- color : { process : require ( '../../StyleSheet/processColor' ) } ,
673
- autoComplete : true ,
674
- numberOfLines : true ,
675
- letterSpacing : true ,
676
- returnKeyLabel : true ,
677
- fontSize : true ,
678
- onKeyPress : true ,
679
- cursorColor : { process : require ( '../../StyleSheet/processColor' ) } ,
680
- text : true ,
681
- showSoftInputOnFocus : true ,
682
- textAlign : true ,
683
- autoCapitalize : true ,
684
- autoCorrect : true ,
685
- caretHidden : true ,
686
- secureTextEntry : true ,
687
- textBreakStrategy : true ,
688
- onScroll : true ,
689
- onContentSizeChange : true ,
690
- disableFullscreenUI : true ,
691
- includeFontPadding : true ,
692
- fontWeight : true ,
693
- fontFamily : true ,
694
- allowFontScaling : true ,
695
- onSelectionChange : true ,
696
- mostRecentEventCount : true ,
697
- inlineImageLeft : true ,
698
- editable : true ,
699
- fontVariant : true ,
700
- borderBottomRightRadius : true ,
701
- borderBottomColor : { process : require ( '../../StyleSheet/processColor' ) } ,
702
- borderRadius : true ,
703
- borderRightColor : { process : require ( '../../StyleSheet/processColor' ) } ,
704
- borderColor : { process : require ( '../../StyleSheet/processColor' ) } ,
705
- borderTopRightRadius : true ,
706
- borderStyle : true ,
707
- borderBottomLeftRadius : true ,
708
- borderLeftColor : { process : require ( '../../StyleSheet/processColor' ) } ,
709
- borderTopLeftRadius : true ,
710
- borderTopColor : { process : require ( '../../StyleSheet/processColor' ) } ,
711
637
} ,
712
- } ) ,
638
+ } ,
639
+ directEventTypes : {
640
+ topScroll : {
641
+ registrationName : 'onScroll' ,
642
+ } ,
643
+ } ,
644
+ validAttributes : {
645
+ maxFontSizeMultiplier : true ,
646
+ adjustsFontSizeToFit : true ,
647
+ minimumFontScale : true ,
648
+ autoFocus : true ,
649
+ placeholder : true ,
650
+ inlineImagePadding : true ,
651
+ contextMenuHidden : true ,
652
+ textShadowColor : { process : require ( '../../StyleSheet/processColor' ) } ,
653
+ maxLength : true ,
654
+ selectTextOnFocus : true ,
655
+ textShadowRadius : true ,
656
+ underlineColorAndroid : {
657
+ process : require ( '../../StyleSheet/processColor' ) ,
658
+ } ,
659
+ textDecorationLine : true ,
660
+ blurOnSubmit : true ,
661
+ textAlignVertical : true ,
662
+ fontStyle : true ,
663
+ textShadowOffset : true ,
664
+ selectionColor : { process : require ( '../../StyleSheet/processColor' ) } ,
665
+ selection : true ,
666
+ placeholderTextColor : { process : require ( '../../StyleSheet/processColor' ) } ,
667
+ importantForAutofill : true ,
668
+ lineHeight : true ,
669
+ textTransform : true ,
670
+ returnKeyType : true ,
671
+ keyboardType : true ,
672
+ multiline : true ,
673
+ color : { process : require ( '../../StyleSheet/processColor' ) } ,
674
+ autoComplete : true ,
675
+ numberOfLines : true ,
676
+ letterSpacing : true ,
677
+ returnKeyLabel : true ,
678
+ fontSize : true ,
679
+ onKeyPress : true ,
680
+ cursorColor : { process : require ( '../../StyleSheet/processColor' ) } ,
681
+ text : true ,
682
+ showSoftInputOnFocus : true ,
683
+ textAlign : true ,
684
+ autoCapitalize : true ,
685
+ autoCorrect : true ,
686
+ caretHidden : true ,
687
+ secureTextEntry : true ,
688
+ textBreakStrategy : true ,
689
+ onScroll : true ,
690
+ onContentSizeChange : true ,
691
+ disableFullscreenUI : true ,
692
+ includeFontPadding : true ,
693
+ fontWeight : true ,
694
+ fontFamily : true ,
695
+ allowFontScaling : true ,
696
+ onSelectionChange : true ,
697
+ mostRecentEventCount : true ,
698
+ inlineImageLeft : true ,
699
+ editable : true ,
700
+ fontVariant : true ,
701
+ borderBottomRightRadius : true ,
702
+ borderBottomColor : { process : require ( '../../StyleSheet/processColor' ) } ,
703
+ borderRadius : true ,
704
+ borderRightColor : { process : require ( '../../StyleSheet/processColor' ) } ,
705
+ borderColor : { process : require ( '../../StyleSheet/processColor' ) } ,
706
+ borderTopRightRadius : true ,
707
+ borderStyle : true ,
708
+ borderBottomLeftRadius : true ,
709
+ borderLeftColor : { process : require ( '../../StyleSheet/processColor' ) } ,
710
+ borderTopLeftRadius : true ,
711
+ borderTopColor : { process : require ( '../../StyleSheet/processColor' ) } ,
712
+ } ,
713
+ } ;
714
+
715
+ let AndroidTextInputNativeComponent = NativeComponentRegistry . get < NativeProps > (
716
+ 'AndroidTextInput' ,
717
+ ( ) => __INTERNAL_VIEW_CONFIG ,
713
718
) ;
714
719
715
720
// flowlint-next-line unclear-type:off
0 commit comments