Skip to content

Commit 2d43ce5

Browse files
authored
autoCapitalize prop typo fix (#139)
* fix: autocapitalize prop type * fix: main branch merge problems
1 parent 2581575 commit 2d43ce5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export default function App() {
231231
placeholderTextColor="rgb(0, 26, 114)"
232232
selectionColor="deepskyblue"
233233
cursorColor="dodgerblue"
234-
autocapitalize="sentences"
234+
autoCapitalize="sentences"
235235
defaultValue={defaultValue}
236236
onChangeText={handleChangeText}
237237
onChangeHtml={handleChangeHtml}

src/EnrichedTextInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export interface EnrichedTextInputProps extends Omit<ViewProps, 'children'> {
127127
placeholderTextColor?: ColorValue;
128128
cursorColor?: ColorValue;
129129
selectionColor?: ColorValue;
130-
autocapitalize?: 'none' | 'sentences' | 'words' | 'characters';
130+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
131131
htmlStyle?: HtmlStyle;
132132
style?: ViewStyle | TextStyle;
133133
onFocus?: () => void;
@@ -178,7 +178,7 @@ export const EnrichedTextInput = ({
178178
cursorColor,
179179
selectionColor,
180180
style,
181-
autocapitalize = 'sentences',
181+
autoCapitalize = 'sentences',
182182
htmlStyle = {},
183183
onFocus,
184184
onBlur,
@@ -337,7 +337,7 @@ export const EnrichedTextInput = ({
337337
cursorColor={cursorColor}
338338
selectionColor={selectionColor}
339339
style={style}
340-
autoCapitalize={autocapitalize}
340+
autoCapitalize={autoCapitalize}
341341
htmlStyle={normalizedHtmlStyle}
342342
onInputFocus={onFocus}
343343
onInputBlur={onBlur}

0 commit comments

Comments
 (0)