Skip to content

Commit d5c2997

Browse files
committed
fix: disable unsupported <TextInput> props
Similar to e9233b7, but for <TextInput> instead of <Text>
1 parent 4f6565b commit d5c2997

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Libraries/Text/TextInputLegacy/RCTTextViewManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ - (NSView *)view
3333
return [[RCTMultilineTextInputView alloc] initWithBridge:self.bridge];
3434
}
3535

36-
RCT_REMAP_VIEW_PROPERTY(autoCapitalize, textView.autocapitalizationType, UITextAutocapitalizationType)
37-
RCT_REMAP_VIEW_PROPERTY(autoCorrect, autocorrectionType, UITextAutocorrectionType)
38-
RCT_REMAP_VIEW_PROPERTY(spellCheck, spellCheckingType, UITextSpellCheckingType)
36+
// RCT_REMAP_VIEW_PROPERTY(autoCapitalize, textView.autocapitalizationType, UITextAutocapitalizationType)
37+
// RCT_REMAP_VIEW_PROPERTY(autoCorrect, autocorrectionType, UITextAutocorrectionType)
38+
// RCT_REMAP_VIEW_PROPERTY(spellCheck, spellCheckingType, UITextSpellCheckingType)
3939
RCT_EXPORT_VIEW_PROPERTY(blurOnSubmit, BOOL)
4040
RCT_EXPORT_VIEW_PROPERTY(clearTextOnFocus, BOOL)
4141
RCT_REMAP_VIEW_PROPERTY(editable, textView.editable, BOOL)

RNTester/js/TextInputExample.macos.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
5656
return (
5757
<View>
5858
<TextInput
59-
autoCapitalize="none"
59+
//autoCapitalize="none"
6060
placeholder="Enter text to see events"
61-
autoCorrect={false}
61+
//autoCorrect={false}
6262
onFocus={() => this.updateText('onFocus')}
6363
onBlur={() => this.updateText('onBlur')}
6464
onChange={(event) => this.updateText(
@@ -734,8 +734,8 @@ exports.examples = [
734734
placeholder="multiline text input with font styles and placeholder"
735735
multiline={true}
736736
clearTextOnFocus={true}
737-
autoCorrect={true}
738-
autoCapitalize="words"
737+
//autoCorrect={true}
738+
//autoCapitalize="words"
739739
placeholderTextColor="red"
740740
keyboardType="url"
741741
style={[styles.multiline, styles.multilineWithFontStyles]}

0 commit comments

Comments
 (0)