1"use strict";(self.webpackChunkreact_native_website=self.webpackChunkreact_native_website||[]).push([["1153"],{9571(e,n,d){d.r(n),d.d(n,{metadata:()=>i,default:()=>a,frontMatter:()=>r,contentTitle:()=>c,toc:()=>o,assets:()=>t});var i=JSON.parse('{"id":"textinput","title":"TextInput","description":"A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, such as auto-correction, auto-capitalization, placeholder text, and different keyboard types, such as a numeric keypad.","source":"@site/versioned_docs/version-0.78/textinput.md","sourceDirName":".","slug":"/textinput","permalink":"/docs/0.78/textinput","draft":false,"unlisted":false,"editUrl":"[{\\"label\\":\\"Edit page for next release\\",\\"href\\":\\"https://github.com/facebook/react-native-website/edit/main/docs/textinput.md\\"},{\\"label\\":\\"Edit page for 0.78 release\\",\\"href\\":\\"https://github.com/facebook/react-native-website/edit/main/website/versioned_docs/version-0.78/textinput.md\\"}]","tags":[],"version":"0.78","lastUpdatedAt":1756385498000,"frontMatter":{"id":"textinput","title":"TextInput"},"sidebar":"components","previous":{"title":"Text","permalink":"/docs/0.78/text"},"next":{"title":"TouchableHighlight","permalink":"/docs/0.78/touchablehighlight"}}'),l=d(62540),s=d(43023);let r={id:"textinput",title:"TextInput"},c,t={},o=[{value:"Props",id:"props",level:2},{value:"View Props",id:"view-props",level:3},{value:"<code>allowFontScaling</code>",id:"allowfontscaling",level:3},{value:"<code>autoCapitalize</code>",id:"autocapitalize",level:3},{value:"<code>autoComplete</code>",id:"autocomplete",level:3},{value:"<code>autoCorrect</code>",id:"autocorrect",level:3},{value:"<code>autoFocus</code>",id:"autofocus",level:3},{value:"<code>blurOnSubmit</code>",id:"bluronsubmit",level:3},{value:"<code>caretHidden</code>",id:"carethidden",level:3},{value:'<code>clearButtonMode</code> <div class="label ios">iOS</div>',id:"clearbuttonmode-ios",level:3},{value:'<code>clearTextOnFocus</code> <div class="label ios">iOS</div>',id:"cleartextonfocus-ios",level:3},{value:"<code>contextMenuHidden</code>",id:"contextmenuhidden",level:3},{value:'<code>dataDetectorTypes</code> <div class="label ios">iOS</div>',id:"datadetectortypes-ios",level:3},{value:"<code>defaultValue</code>",id:"defaultvalue",level:3},{value:'<code>cursorColor</code> <div class="label android">Android</div>',id:"cursorcolor-android",level:3},{value:'<code>disableFullscreenUI</code> <div class="label android">Android</div>',id:"disablefullscreenui-android",level:3},{value:"<code>editable</code>",id:"editable",level:3},{value:'<code>enablesReturnKeyAutomatically</code> <div class="label ios">iOS</div>',id:"enablesreturnkeyautomatically-ios",level:3},{value:"<code>enterKeyHint</code>",id:"enterkeyhint",level:3},{value:'<code>importantForAutofill</code> <div class="label android">Android</div>',id:"importantforautofill-android",level:3},{value:'<code>inlineImageLeft</code> <div class="label android">Android</div>',id:"inlineimageleft-android",level:3},{value:'<code>inlineImagePadding</code> <div class="label android">Android</div>',id:"inlineimagepadding-android",level:3},{value:'<code>inputAccessoryViewID</code> <div class="label ios">iOS</div>',id:"inputaccessoryviewid-ios",level:3},{value:'<code>inputAccessoryViewButtonLabel</code> <div class="label ios">iOS</div>',id:"inputaccessoryviewbuttonlabel-ios",level:3},{value:"<code>inputMode</code>",id:"inputmode",level:3},{value:'<code>keyboardAppearance</code> <div class="label ios">iOS</div>',id:"keyboardappearance-ios",level:3},{value:"<code>keyboardType</code>",id:"keyboardtype",level:3},{value:"<code>maxFontSizeMultiplier</code>",id:"maxfontsizemultiplier",level:3},{value:"<code>maxLength</code>",id:"maxlength",level:3},{value:"<code>multiline</code>
1",id:"multiline",level:3},{value:'<code>numberOfLines</code> <div class="label android">Android</div>',id:"numberoflines-android",level:3},{value:"<code>onBlur</code>",id:"onblur",level:3},{value:"<code>onChange</code>",id:"onchange",level:3},{value:"<code>onChangeText</code>",id:"onchangetext",level:3},{value:"<code>onContentSizeChange</code>",id:"oncontentsizechange",level:3},{value:"<code>onEndEditing</code>",id:"onendediting",level:3},{value:"<code>onPressIn</code>",id:"onpressin",level:3},{value:"<code>onPressOut</code>",id:"onpressout",level:3},{value:"<code>onFocus</code>",id:"onfocus",level:3},{value:"<code>onKeyPress</code>",id:"onkeypress",level:3},{value:"<code>onLayout</code>",id:"onlayout",level:3},{value:"<code>onScroll</code>",id:"onscroll",level:3},{value:"<code>onSelectionChange</code>",id:"onselectionchange",level:3},{value:"<code>onSubmitEditing</code>",id:"onsubmitediting",level:3},{value:"<code>placeholder</code>",id:"placeholder",level:3},{value:"<code>placeholderTextColor</code>",id:"placeholdertextcolor",level:3},{value:"<code>readOnly</code>",id:"readonly",level:3},{value:'<code>returnKeyLabel</code> <div class="label android">Android</div>',id:"returnkeylabel-android",level:3},{value:"<code>returnKeyType</code>",id:"returnkeytype",level:3},{value:'<code>rejectResponderTermination</code> <div class="label ios">iOS</div>',id:"rejectrespondertermination-ios",level:3},{value:'<code>rows</code> <div class="label android">Android</div>',id:"rows-android",level:3},{value:'<code>scrollEnabled</code> <div class="label ios">iOS</div>',id:"scrollenabled-ios",level:3},{value:"<code>secureTextEntry</code>",id:"securetextentry",level:3},{value:"<code>selection</code>",id:"selection",level:3},{value:"<code>selectionColor</code>",id:"selectioncolor",level:3},{value:'<code>selectionHandleColor</code> <div class="label android">Android</div>',id:"selectionhandlecolor-android",level:3},{value:"<code>selectTextOnFocus</code>",id:"selecttextonfocus",level:3},{value:"<code>showSoftInputOnFocus</code>",id:"showsoftinputonfocus",level:3},{value:'<code>smartInsertDelete</code> <div class="label ios">iOS</div>',id:"smartinsertdelete-ios",level:3},{value:'<code>spellCheck</code> <div class="label ios">iOS</div>',id:"spellcheck-ios",level:3},{value:"<code>submitBehavior</code>",id:"submitbehavior",level:3},{value:"<code>textAlign</code>",id:"textalign",level:3},{value:'<code>textContentType</code> <div class="label ios">iOS</div>',id:"textcontenttype-ios",level:3},{value:'<code>passwordRules</code> <div class="label ios">iOS</div>',id:"passwordrules-ios",level:3},{value:"<code>style</code>",id:"style",level:3},{value:'<code>textBreakStrategy</code> <div class="label android">Android</div>',id:"textbreakstrategy-android",level:3},{value:'<code>underlineColorAndroid</code> <div class="label android">Android</div>',id:"underlinecolorandroid-android",level:3},{value:"<code>value</code>",id:"value",level:3},{value:'<code>lineBreakStrategyIOS</code> <div class="label ios">iOS</div>',id:"linebreakstrategyios-ios",level:3},{value:'<code>lineBreakModeIOS</code> <div class="label ios">iOS</div>',id:"linebreakmodeios-ios",level:3},{value:'<code>disableKeyboardShortcuts</code> <div class="label ios">iOS</div>',id:"disablekeyboardshortcuts-ios",level:3},{value:"Methods",id:"methods",level:2},{value:"<code>.focus()</code>",id:"focus",level:3},{value:"<code>.blur()</code>",id:"blur",level:3},{value:"<code>clear()</code>",id:"clear",level:3},{value:"<code>isFocused()</code>",id:"isfocused",level:3}];function h(e){let n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",div:"div",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.p,{children:"A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, such as auto-correction, auto-capitalization, placeholder text, and different keyboard types, such as a numeric keypad."}),"\n",(0,l.jsxs)(n.p,{children:["The most basic use case is to plop down a ",(0,l.jsx)(n.code,{children:"TextInput"})," and subscribe to the ",(0,l.jsx)(n.code,{children:"onChangeText"})," events to read the user input. There are also other events, such as ",(0,l.jsx)(n.code,{children:"onSubmitEditing"})," and ",(0,l.jsx)(n.code,{children:"onFocus"})," that can be subscribed to. A minimal example:"]}),"\n",(0,l.jsx)(n.div,{className:"snack-player","data-snack-name":"TextInput Example","data-snack-description":"Example usage","data-snack-files":"%7B%22App.tsx%22%3A%7B%22type%22%3A%22CODE%22%2C%22contents%22%3A%22import%20React%2
10from%20'react'%3B%5Cnimport%20%7BStyleSheet%2C%20TextInput%7D%20from%20'react-native'%3B%5Cnimport%20%7BSafeAreaView%2C%20SafeAreaProvider%7D%20from%20'react-native-safe-area-context'%3B%5Cn%5Cnconst%20TextInputExample%20%3D%20()%20%3D%3E%20%7B%5Cn%20%20const%20%5Btext%2C%20onChangeText%5D%20%3D%20React.useState('Useless%20Text')%3B%5Cn%20%20const%20%5Bnumber%2C%20onChangeNumber%5D%20%3D%20React.useState('')%3B%5Cn%5Cn%20%20return%20(%5Cn%20%20%20%20%3CSafeAreaProvider%3E%5Cn%20%20%20%20%20%20%3CSafeAreaView%3E%5Cn%20%20%20%20%20%20%20%20%3CTextInput%5Cn%20%20%20%20%20%20%20%20%20%20style%3D%7Bstyles.input%7D%5Cn%20%20%20%20%20%20%20%20%20%20onChangeText%3D%7BonChangeText%7D%5Cn%20%20%20%20%20%20%20%20%20%20value%3D%7Btext%7D%5Cn%20%20%20%20%20%20%20%20%2F%3E%5Cn%20%20%20%20%20%20%20%20%3CTextInput%5Cn%20%20%20%20%20%20%20%20%20%20style%3D%7Bstyles.input%7D%5Cn%20%20%20%20%20%20%20%20%20%20onChangeText%3D%7BonChangeNumber%7D%5Cn%20%20%20%20%20%20%20%20%20%20value%3D%7Bnumber%7D%5Cn%20%20%20%20%20%20%20%20%20%20placeholder%3D%5C%22useless%20placeholder%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20keyboardType%3D%5C%22numeric%5C%22%5Cn%20%20%20%20%20%20%20%20%2F%3E%5Cn%20%20%20%20%20%20%3C%2FSafeAreaView%3E%5Cn%20%20%20%20%3C%2FSafeAreaProvider%3E%5Cn%20%20)%3B%5Cn%7D%3B%5Cn%5Cnconst%20styles%20%3D%20StyleSheet.create(%7B%5Cn%20%20input%3A%20%7B%5Cn%20%20%20%20height%3A%2040%2C%5Cn%20%20%20%20margin%3A%2012%2C%5Cn%20%20%20%20borderWidth%3A%201%2C%5Cn%20%20%20%20padding%3A%2010%2C%5Cn%20%20%7D%2C%5Cn%7D)%3B%5Cn%5Cnexport%20default%20TextInputExample%3B%22%7D%7D","data-snack-dependencies":"react-native-safe-area-context","data-snack-platform":"web","data-snack-supported-platforms":"ios,android,web","data-snack-theme":"light","data-snack-preview":"true","data-snack-loading":"lazy","data-snack-device-appearance":"light","data-snack-device-frame":"false"}),"\n",(0,l.jsxs)(n.p,{children:["Two methods exposed via the native element are ",(0,l.jsx)(n.code,{children:".focus()"})," and ",(0,l.jsx)(n.code,{children:".blur()"})," that will focus or blur the TextInput programmatically."]}),"\n",(0,l.jsxs)(n.p,{children:["Note that some props are only available with ",(0,l.jsx)(n.code,{children:"multiline={true/false}"}),". Additionally, border styles that apply to only one side of the element (e.g., ",(0,l.jsx)(n.code,{children:"borderBottomColor"}),", ",(0,l.jsx)(n.code,{children:"borderLeftWidth"}),", etc.) will not be applied if ",(0,l.jsx)(n.code,{children:"multiline=true"}),". To achieve the same effect, you can wrap your ",(0,l.jsx)(n.code,{children:"TextInput"})," in a ",(0,l.jsx)(n.code,{children:"View"}),":"]}),"\n",(0,l.jsx)(n.div,{className:"snack-player","data-snack-name":"Multiline TextInput Example","data-snack-description":"Example usage","data-snack-files":"%7B%22App.tsx%22%3A%7B%22type%22%3A%22CODE%22%2C%22contents%22%3A%22import%20React%20from%20'react'%3B%5Cnimport%20%7BTextInput%2C%20StyleSheet%7D%20from%20'react-native'%3B%5Cnimport%20%7BSafeAreaView%2C%20SafeAreaProvider%7D%20from%20'react-native-safe-area-context'%3B%5Cn%5Cnconst%20MultilineTextInputExample%20%3D%20()%20%3D%3E%20%7B%5Cn%20%20const%20%5Bvalue%2C%20onChangeText%5D%20%3D%20React.useState('Useless%20Multiline%20Placeholder')%3B%5Cn%5Cn%20%20%2F%2F%20If%20you%20type%20something%20in%20the%20text%20box%20that%20is%20a%20color%2C%5Cn%20%20%2F%2F%20the%20background%20will%20change%20to%20that%20color.%5Cn%20%20return%20(%5Cn%20%20%20%20%3CSafeAreaProvider%3E%5Cn%20%20%20%20%20%20%3CSafeAreaView%5Cn%20%20%20%20%20%20%20%20style%3D%7B%7B%5Cn%20%20%20%20%20%20%20%20%20%20flex%3A%201%2C%5Cn%20%20%20%20%20%20%20%20%20%20backgroundColor%3A%20value.toLowerCase()%2C%5Cn%20%20%20%20%20%20%20%20%7D%7D%3E%5Cn%20%20%20%20%20%20%20%20%3CTextInput%5Cn%20%20%20%20%20%20%20%20%20%20editable%5Cn%20%20%20%20%20%20%20%20%20%20multiline%5Cn%20%20%20%20%20%20%20%20%20%20numberOfLines%3D%7B4%7D%5Cn%20%20%20%20%20%20%20%20%20%20maxLength%3D%7B40%7D%5Cn%20%20%20%20%20%20%20%20%20%20onChangeText%3D%7Btext%20%3D%3E%20onChangeText(text)%7D%5Cn%20%20%20%20%20%20%20%20%20%20value%3D%7Bvalue%7D%5Cn%20%20%20%20%20%20%20%20%20%20style%3D%7Bstyles.textInput%7D%5Cn%20%20%20%20%20%20%20%20%2F%3E%5Cn%20%20%20%20%20%20%3C%2FSafeAreaView%3E%5Cn%20%20%20%20%3C%2FSafeAreaProvider%3E%5Cn%20%20)%3B%5Cn%7D%3B%5Cn%5Cnconst%20styles%20%3D%20StyleSheet.create(%7B%5Cn%20%20textInput%3A%20%7B%5Cn%20%20%20%20padding%3A%2010%2C%5Cn%20%20%20%20borderColor%3A%20'%23000'%2C%5Cn%20%20%20%20borderWidth%3A%201%2C%5Cn%20%20%20%20margin%3A%2012%2C%5Cn%20%20%7D%2C%5Cn%7D
1)%3B%5Cn%5Cnexport%20default%20MultilineTextInputExample%3B%22%7D%7D","data-snack-dependencies":"react-native-safe-area-context","data-snack-platform":"web","data-snack-supported-platforms":"ios,android,web","data-snack-theme":"light","data-snack-preview":"true","data-snack-loading":"lazy","data-snack-device-appearance":"light","data-snack-device-frame":"false"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"TextInput"})," has a border at the bottom of its view by default. This border has its padding set by the background image provided by the system, and it cannot be changed. Solutions to avoid this are to either not set height explicitly, in which case the system will take care of displaying the border in the correct position, or to not display the border by setting ",(0,l.jsx)(n.code,{children:"underlineColorAndroid"})," to transparent."]}),"\n",(0,l.jsxs)(n.p,{children:["Note that on Android performing text selection in an input can change the app's activity ",(0,l.jsx)(n.code,{children:"windowSoftInputMode"})," param to ",(0,l.jsx)(n.code,{children:"adjustResize"}),". This may cause issues with components that have position: 'absolute' while the keyboard is active. To avoid this behavior either specify ",(0,l.jsx)(n.code,{children:"windowSoftInputMode"})," in AndroidManifest.xml ( ",(0,l.jsx)(n.a,{href:"https://developer.android.com/guide/topics/manifest/activity-element.html",children:"https://developer.android.com/guide/topics/manifest/activity-element.html"})," ) or control this param programmatically with native code."]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h1,{id:"reference",children:"Reference"}),"\n",(0,l.jsx)(n.h2,{id:"props",children:"Props"}),"\n",(0,l.jsx)(n.h3,{id:"view-props",children:(0,l.jsx)(n.a,{href:"/docs/0.78/view#props",children:"View Props"})}),"\n",(0,l.jsxs)(n.p,{children:["Inherits ",(0,l.jsx)(n.a,{href:"/docs/0.78/view#props",children:"View Props"}),"."]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"allowfontscaling",children:(0,l.jsx)(n.code,{children:"allowFontScaling"})}),"\n",(0,l.jsxs)(n.p,{children:["Specifies whether fonts should scale to respect Text Size accessibility settings. The default is ",(0,l.jsx)(n.code,{children:"true"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"autocapitalize",children:(0,l.jsx)(n.code,{children:"autoCapitalize"})}),"\n",(0,l.jsxs)(n.p,{children:["Tells ",(0,l.jsx)(n.code,{children:"TextInput"})," to automatically capitalize certain characters. This property is not supported by some keyboard types such as ",(0,l.jsx)(n.code,{children:"name-phone-pad"}),"."]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"characters"}),": all characters."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"words"}),": first letter of each word."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"sentences"}),": first letter of each sentence (",(0,l.jsx)(n.em,{children:"default"}),")."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"none"}),": don't auto capitalize anything."]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('none', 'sentences', 'words', 'characters')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"autocomplete",children:(0,l.jsx)(n.code,{children:"autoComplete"})}),"\n",(0,l.jsxs)(n.p,{children:["Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content. To disable autocomplete, set ",(0,l.jsx)(n.code,{children:"autoComplete"})," to ",(0,l.jsx)(n.code,{children:"off"}),"."]}),"\n",(0,l.jsx)(n.p,{children:"The following values work across platforms:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"additional-name"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"address-line1"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"address-line2"})}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdate-day"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdate-full"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdate-month"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdate-year"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-csc"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-exp"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-exp-day"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-exp-month"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-exp-year"})," (iOS 17+)"]}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"cc-number"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"country"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"current-password"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"email"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"family-name"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"given-name"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"honorific-prefix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"honorific-suffix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"new-password"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"off"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"one-time-code"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-code"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"street-address"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"tel"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"username"})}),"\n"]}),"\n",(0,l.jsx)("div",{className:"label basic ios",children:"iOS"}),"\n",(0,l.jsx)(n.p,{children:"The following values work on iOS only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-family-name"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-given-name"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-middle-name"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-name"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"cc-type"})," (iOS 17+)"]}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"nickname"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"organization"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"organization-title"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"url"})}),"\n"]}),"\n",(0,l.jsx)("div",{className:"label basic android",children:"Android"}),"\n",(0,l.jsx)(n.p,{children:"The following values work on Android only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"gender"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-family"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-given"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-middle"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-middle-initial"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-prefix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-suffix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"password"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"password-new"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address-country"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address-extended"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address-extended-postal-code"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address-locality"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postal-address-region"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"sms-otp"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"tel-country-code"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"tel-device"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"tel-national"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"username-new"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('additional-name', 'address-line1', 'address-line2', 'birthdate-day', 'birthdate-full', 'birthdate-month', 'birthdate-year', 'cc-csc', 'cc-exp', 'cc-exp-day', 'cc-exp-month', 'cc-exp-year', 'cc-number', 'country', 'current-password', 'email', 'family-name', 'given-name', 'honorific-prefix', 'honorific-suffix', 'name', 'new-password', 'off', 'one-time-code', 'postal-code', 'street-address', 'tel', 'username', 'cc-family-name', 'cc-given-name', 'cc-middle-name', 'cc-name', 'cc-type', 'nickname', 'organization', 'organization-title', 'url', 'gender', 'name-family', 'name-given', 'name-middle', 'name-middle-initial', 'name-prefix', 'name-suffix', 'password', 'password-new', 'postal-address', 'postal-address-country', 'postal-address-extended', 'postal-address-extended-postal-code', 'postal-address-locality', 'postal-address-region', 'sms-otp', 'tel-country-code', 'tel-device', 'tel-national', 'username-new')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"autocorrect",children:(0,l.jsx)(n.code,{children:"autoCorrect"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"false"}),", disables auto-correct. The default value is ",(0,l.jsx)(n.code,{children:"true"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"autofocus",children:(0,l.jsx)(n.code,{children:"autoFocus"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", focuses the input. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"bluronsubmit",children:(0,l.jsx)(n.code,{children:"blurOnSubmit"})}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"Deprecated."})," Note that ",(0,l.jsx)(n.code,{children:"submitBehavior"})," now takes the place of ",(0,l.jsx)(n.code,{children:"blurOnSubmit"})," and will override any behavior defined by ",(0,l.jsx)(n.code,{children:"blurOnSubmit"}),". See ",(0,l.jsx)(n.a,{href:"textinput#submitbehavior",children:"submitBehavior"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", the text field will blur when submitted. The default value is true for single-line fields and false for multiline fields. Note that for multiline fields, setting ",(0,l.jsx)(n.code,{children:"blurOnSubmit"})," to ",(0,l.jsx)(n.code,{children:"true"})," means that pressing return will blur the field and trigger the ",(0,l.jsx)(n.code,{children:"onSubmitEditing"})," event instead of inserting a newline into the field."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"carethidden",children:(0,l.jsx)(n.code,{children:"caretHidden"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", caret is hidden. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"clearbuttonmode-ios",children:[(0,l.jsx)(n.code,{children:"clearButtonMode"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["When the clear button should appear on the right side of the text view. This property is supported only for single-line TextInput component. The default value is ",(0,l.jsx)(n.code,{children:"never"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('never', 'while-editing', 'unless-editing', 'always')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"cleartextonfocus-ios",children:[(0,l.jsx)(n.code,{children:"clearTextOnFocus"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", clears the text field automatically when editing begins."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"contextmenuhidden",children:(0,l.jsx)(n.code,{children:"contextMenuHidden"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", context menu is hidden. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"datadetectortypes-ios",children:[(0,l.jsx)(n.code,{children:"dataDetectorTypes"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["Determines the types of data converted to clickable URLs in the text input. Only valid if ",(0,l.jsx)(n.code,{children:"multiline={true}"})," and ",(0,l.jsx)(n.code,{children:"editable={false}"}),". By default no data types are detected."]}),"\n",(0,l.jsx)(n.p,{children:"You can provide one type or an array of many types."}),"\n",(0,l.jsxs)(n.p,{children:["Possible values for ",(0,l.jsx)(n.code,{children:"dataDetectorTypes"})," are:"]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'phoneNumber'"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'link'"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'address'"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'calendarEvent'"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'none'"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"'all'"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all'), ,array of enum('phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"defaultvalue",children:(0,l.jsx)(n.code,{childre
1n:"defaultValue"})}),"\n",(0,l.jsx)(n.p,{children:"Provides an initial value that will change when the user starts typing. Useful for use-cases where you do not want to deal with listening to events and updating the value prop to keep the controlled state in sync."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"cursorcolor-android",children:[(0,l.jsx)(n.code,{children:"cursorColor"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:['When provided it will set the color of the cursor (or "caret") in the component. Unlike the behavior of ',(0,l.jsx)(n.code,{children:"selectionColor"})," the cursor color will be set independently from the color of the text selection box."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/colors",children:"color"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"disablefullscreenui-android",children:[(0,l.jsx)(n.code,{children:"disableFullscreenUI"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["When ",(0,l.jsx)(n.code,{children:"false"}),", if there is a small amount of space available around a text input (e.g. landscape orientation on a phone), the OS may choose to have the user edit the text inside of a full screen text input mode. When ",(0,l.jsx)(n.code,{children:"true"}),", this feature is disabled and users will always edit the text directly inside of the text input. Defaults to ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"editable",children:(0,l.jsx)(n.code,{children:"editable"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"false"}),", text is not editable. The default value is ",(0,l.jsx)(n.code,{children:"true"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"enablesreturnkeyautomatically-ios",children:[(0,l.jsx)(n.code,{children:"enablesReturnKeyAutomatically"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", the keyboard disables the return key when there is no text and automatically enables it when there is text. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"enterkeyhint",children:(0,l.jsx)(n.code,{children:"enterKeyHint"})}),"\n",(0,l.jsxs)(n.p,{children:["Determines what text should be shown to the return key. Has precedence over the ",(0,l.jsx)(n.code,{children:"returnKeyType"})," prop."]}),"\n",(0,l.jsx)(n.p,{children:"The following values work across platforms:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"done"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"next"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"search"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"send"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"go"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"Android Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on Android only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"previous"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"iOS Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on iOS only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"enter"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('enter', 'done', 'next', 'previous', 'search', 'send', 'go')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"importantforautofill-android",children:[(0,l.jsx)(n.code,{children:"importantForAutofill"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Tells the operating system whether the individual fields in your app should be included in a view structure for autofill purposes on Android API Level 26+. Possible values are ",(0,l.jsx)(n.code,{children:"auto"}),", ",(0,l.jsx)(n.code,{children:"no"}),", ",(0,l.jsx)(n.code,{children:"noExcludeDescendants"}),", ",(0,l.jsx)(n.code,{children:"yes"}),", and ",(0,l.jsx)(n.code,{children:"yesExcludeDescendants"}),". The default value is ",(0,l.jsx)(n.code,{children:"auto"}),"."]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"auto"}),": Let the Android System use its heuristics to determine if the view is important for autofill."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"no"}),": This view isn't important for autofill."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"noExcludeDescendants"}),": This view and its children aren't important for autofill."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"yes"}),": This view is important for autofill."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"yesExcludeDescendants"}),": This view is important for autofill, but its children aren't important for autofill."]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('auto', 'no', 'noExcludeDescendants', 'yes', 'yesExcludeDescendants')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"inlineimageleft-android",children:[(0,l.jsx)(n.code,{children:"inlineImageLeft"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["If defined, the provided image resource will be rendered on the left. The image resource must be inside ",(0,l.jsx)(n.code,{children:"/android/app/src/main/res/drawable"})," and referenced like"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{children:"<TextInput\n inlineImageLeft='search_icon'\n/>\n"})}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"inlineimagepadding-android",children:[(0,l.jsx)(n.code,{children:"inlineImagePadding"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsx)(n.p,{children:"Padding between the inline image, if any, and the text input itself."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"number"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"inputaccessoryviewid-ios",children:[(0,l.jsx)(n.code,{children:"inputAccessoryViewID"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["An optional identifier which links a custom ",(0,l.jsx)(n.a,{href:"/docs/0.78/inputaccessoryview",children:"InputAccessoryView"})," to this text input. The InputAccessoryView is rendered above the keyboard when this text input is focused."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"inputaccessoryviewbuttonlabel-ios",children:[(0,l.jsx)(n.code,{children:"inputAccessoryViewButtonLabel"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["An optional label that overrides the default ",(0,l.jsx)(n.a,{href:"/docs/0.78/inputaccessoryview",children:"InputAccessoryView"})," button label."]}),"\n",(0,l.jsx)(n.p,{children:"By default, the default button label is not localized. Use this property to provide a localized version."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"inputmode",children:(0,l.jsx)(n.code,{children:"inputMode"})}),"\n",(0,l.jsxs)(n.p,{children:["Works like the ",(0,l.jsx)(n.code,{children:"inputmode"})," attribute in HTML, it determines which keyboard to open, e.g. ",(0,l.jsx)(n.code,{children:"numeric"})," and has precedence over ",(0,l.jsx)(n.code,{children:"keyboardType"}),"."]}),"\n",(0,l.jsx)(n.p,{children:"Support the following values:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"none"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"text"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"decimal"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"numeric"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"tel"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"search"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"email"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"url"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', 'url')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"keyboardappearance-ios",children:[(0,l.jsx)(n.code,{children:"keyboardAppearance"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsx)(n.p,{children:"Determines the color of the keyboard."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('default', 'light', 'dark')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"keyboardtype",children:(0,l.jsx)(n.code,{children:"keyboardType"})}),"\n",(0,l.jsxs)(n.p,{children:["Determines which keyboard to open, e.g.",(0,l.jsx)(n.code,{children:"numeric"}),"."]}),"\n",(0,l.jsxs)(n.p,{children:["See screenshots of all the types ",(0,l.jsx)(n.a,{href:"https://davidl.fr/blog/keyboard-react-native-ios-android#all-react-native-keyboard-type-examples-i-os-on-the-left-android-on-the-right",children:"here"}),"."]}),"\n",(0,l.jsx)(n.p,{children:"The following values work across platforms:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"default"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"number-pad"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"decimal-pad"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"numeric"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"email-address"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"phone-pad"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"url"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"iOS Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on iOS only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"ascii-capable"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"numbers-and-punctuation"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name-phone-pad"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"twitter"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"web-search"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"Android Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on Android only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"visible-password"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search', 'visible-password')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"maxfontsizemultiplier",children:(0,l.jsx)(n.code,{children:"maxFontSizeMultiplier"})}),"\n",(0,l.jsxs)(n.p,{children:["Specifies largest possible scale a font can reach when ",(0,l.jsx)(n.code,{children:"allowFontScaling"})," is enabled. Possible values:"]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"null/undefined"})," (default): inherit from the parent node or the global default (0)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"0"}),": no max, ignore parent/global default"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:">= 1"}),": sets the ",(0,l.jsx)(n.code,{children:"maxFontSizeMultiplier"})," of this node to this value"]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"number"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"maxlength",children:(0,l.jsx)(n.code,{children:"maxLength"})}),"\n",(0,l.jsx)(n.p,{children:"Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"number"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"multiline",children:(0,l.jsx)(n.code,{children:"multiline"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", the text input can be multiple lines. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsx)(n.admonition,{type:"note",children:(0,l.jsxs)(n.p,{children:["It is important to note that this aligns the text to the top on iOS, and centers it on Android. Use with ",(0,l.jsx)(n.code,{children:"textAlignVertical"})," set to ",(0,l.jsx)(n.code,{children:"top"})," for the same behavior in both platforms."]})}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"numberoflines-android",children:[(0,l.jsx)(n.code,{children:"numberOfLines"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Sets the number of lines for a ",(0,l.jsx)(n.code,{children:"TextInput"}),". Use it with multiline set to ",(0,l.jsx)(n.code,{children:"true"})," to be able to fill the lines."]}),"\n",(0,l.jsxs)(n.table,{childre
1n:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"number"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onblur",children:(0,l.jsx)(n.code,{children:"onBlur"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input is blurred."}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:["Note: If you are attempting to access the ",(0,l.jsx)(n.code,{children:"text"})," value from ",(0,l.jsx)(n.code,{children:"nativeEvent"})," keep in mind that the resulting value you get can be ",(0,l.jsx)(n.code,{children:"undefined"})," which can cause unintended errors. If you are trying to find the last value of TextInput, you can use the ",(0,l.jsx)(n.a,{href:"textinput#onendediting",children:(0,l.jsx)(n.code,{children:"onEndEditing"})})," event, which is fired upon completion of editing."]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"function"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onchange",children:(0,l.jsx)(n.code,{children:"onChange"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input's text changes."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {eventCount, target, text}}"}),") => void"]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onchangetext",children:(0,l.jsx)(n.code,{children:"onChangeText"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input's text changes. Changed text is passed as a single string argument to the callback handler."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"function"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"oncontentsizechange",children:(0,l.jsx)(n.code,{children:"onContentSizeChange"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input's content size changes."}),"\n",(0,l.jsx)(n.p,{children:"Only called for multiline text inputs."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {contentSize: {width, height} }}"}),") => void"]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onendediting",children:(0,l.jsx)(n.code,{children:"onEndEditing"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when text input ends."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"function"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onpressin",children:(0,l.jsx)(n.code,{children:"onPressIn"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when a touch is engaged."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"md ({nativeEvent: [PressEvent](pressevent)}) => void"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onpressout",children:(0,l.jsx)(n.code,{children:"onPressOut"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when a touch is released."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"md ({nativeEvent: [PressEvent](pressevent)}) => void"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onfocus",children:(0,l.jsx)(n.code,{children:"onFocus"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input is focused."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"md ({nativeEvent: [LayoutEvent](layoutevent)}) => void"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onkeypress",children:(0,l.jsx)(n.code,{children:"onKeyPress"})}),"\n",(0,l.jsxs)(n.p,{children:["Callback that is called when a key is pressed. This will be called with object where ",(0,l.jsx)(n.code,{children:"keyValue"})," is ",(0,l.jsx)(n.code,{children:"'Enter'"})," or ",(0,l.jsx)(n.code,{children:"'Backspace'"})," for respective keys and the typed-in character otherwise including ",(0,l.jsx)(n.code,{children:"' '"})," for space. Fires before ",(0,l.jsx)(n.code,{children:"onChange"})," callbacks. Note: on Android only the inputs from soft keyboard are handled, not the hardware keyboard inputs."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {key: keyValue} }"}),") => void"]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onlayout",children:(0,l.jsx)(n.code,{children:"onLayout"})}),"\n",(0,l.jsx)(n.p,{children:"Invoked on mount and on layout changes."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"md ({nativeEvent: [LayoutEvent](layoutevent)}) => void"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onscroll",children:(0,l.jsx)(n.code,{children:"onScroll"})}),"\n",(0,l.jsxs)(n.p,{children:["Invoked on content scroll. May also contain other properties from ",(0,l.jsx)(n.code,{children:"ScrollEvent"})," but on Android ",(0,l.jsx)(n.code,{children:"contentSize"})," is not provided for performance reasons."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {contentOffset: {x, y} }}"}),") => void"]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onselectionchange",children:(0,l.jsx)(n.code,{children:"onSelectionChange"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input selection is changed."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {selection: {start, end} }}"}),") => void"]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"onsubmitediting",children:(0,l.jsx)(n.code,{children:"onSubmitEditing"})}),"\n",(0,l.jsx)(n.p,{children:"Callback that is called when the text input's submit button is pressed."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["(",(0,l.jsx)(n.code,{children:"{nativeEvent: {text, eventCount, target}}"}),") => void"]})})})]}),"\n",(0,l.jsxs)(n.p,{children:["Note that on iOS this method isn't called when using ",(0,l.jsx)(n.code,{children:'keyboardType="phone-pad"'}),"."]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"placeholder",children:(0,l.jsx)(n.code,{children:"placeholder"})}),"\n",(0,l.jsx)(n.p,{children:"The string that will be rendered before text input has been entered."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"placeholdertextcolor",children:(0,l.jsx)(n.code,{children:"placeholderTextColor"})}),"\n",(0,l.jsx)(n.p,{children:"The text color of the placeholder string."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/colors",children:"color"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"readonly",children:(0,l.jsx)(n.code,{children:"readOnly"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", text is not editable. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"returnkeylabel-android",children:[(0,l.jsx)(n.code,{children:"returnKeyLabel"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Sets the return key to the label. Use it instead of ",(0,l.jsx)(n.code,{children:"returnKeyType"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"returnkeytype",children:(0,l.jsx)(n.code,{children:"returnKeyType"})}),"\n",(0,l.jsxs)(n.p,{children:["Determines how the return key should look. On Android you can also use ",(0,l.jsx)(n.code,{children:"returnKeyLabel"}),"."]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"Cross platform"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work across platforms:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"done"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"go"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"next"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"search"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"send"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"Android Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on Android only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"none"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"previous"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.em,{children:"iOS Only"})}),"\n",(0,l.jsx)(n.p,{children:"The following values work on iOS only:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"default"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"emergency-call"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"google"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"join"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"route"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"yahoo"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('done', 'go', 'next', 'search', 'send', 'none', 'previous', 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo')"})})})]}),"\n",(0,l.jsxs)(n.h3,{id:"rejectrespondertermination-ios",children:[(0,l.jsx)(n.code,{children:"rejectResponderTermination"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", allows TextInput to pass touch events to the parent component. This allows components such as SwipeableListView to be swipeable from the TextInput on iOS, as is the case on Android by default. If ",(0,l.jsx)(n.code,{children:"false"}),", TextInput always asks to handle the input (except when disabled). The default value is ",(0,l.jsx)(n.code,{children:"true"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"rows-android",children:[(0,l.jsx)(n.code,{children:"rows"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Sets the number of lines for a ",(0,l.jsx)(n.code,{children:"TextInput"}),". Use it with multiline set to ",(0,l.jsx)(n.code,{children:"true"})," to be able to fill the lines."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"number"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"scrollenabled-ios",children:[(0,l.jsx)(n.code,{children:"scrollEnabled"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"false"}),", scrolling of the text view will be disabled. The default value is ",(0,l.jsx)(n.code,{children:"true"}),". Only works with ",(0,l.jsx)(n.code,{children:"multiline={true}"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"securetextentry",children:(0,l.jsx)(n.code,{children:"secureTextEntry"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is ",(0,l.jsx)(n.code,{children:"false"}),". Does not work with ",(0,l.jsx)(n.code,{children:"multiline={true}"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"selection",children:(0,l.jsx)(n.code,{children:"selection"})}),"\n",(0,l.jsx)(n.p,{children:"The start and end of the text input's selection. Set start and end to the same value to position the cursor."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsxs)(n.td,{children:["object: ",(0,l.jsx)(n.code,{children:"{start: number,end: number}"})]})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"selectioncolor",children:(0,l.jsx)(n.code,{children:"selectionColor"})}),"\n",(0,l.jsx)(n.p,{children:"The highlight, selection handle and curs
1or color of the text input."}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/colors",children:"color"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"selectionhandlecolor-android",children:[(0,l.jsx)(n.code,{children:"selectionHandleColor"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Sets the color of the selection handle. Unlike ",(0,l.jsx)(n.code,{children:"selectionColor"}),", it allows the selection handle color to be customized independently of the selection's color."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/colors",children:"color"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"selecttextonfocus",children:(0,l.jsx)(n.code,{children:"selectTextOnFocus"})}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", all text will automatically be selected on focus."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"showsoftinputonfocus",children:(0,l.jsx)(n.code,{children:"showSoftInputOnFocus"})}),"\n",(0,l.jsxs)(n.p,{children:["When ",(0,l.jsx)(n.code,{children:"false"}),", it will prevent the soft keyboard from showing when the field is focused. The default value is ",(0,l.jsx)(n.code,{children:"true"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"smartinsertdelete-ios",children:[(0,l.jsx)(n.code,{children:"smartInsertDelete"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"false"}),", the iOS system will not insert an extra space after a paste operation neither delete one or two spaces after a cut or delete operation."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{children:"Type"}),(0,l.jsx)(n.th,{children:"Default"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{children:"bool"}),(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"true"})})]})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"spellcheck-ios",children:[(0,l.jsx)(n.code,{children:"spellCheck"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"false"}),", disables spell-check style (i.e. red underlines). The default value is inherited from ",(0,l.jsx)(n.code,{children:"autoCorrect"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"submitbehavior",children:(0,l.jsx)(n.code,{children:"submitBehavior"})}),"\n",(0,l.jsx)(n.p,{children:"When the return key is pressed,"}),"\n",(0,l.jsx)(n.p,{children:"For single line inputs:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"'newline'"})," defaults to ",(0,l.jsx)(n.code,{children:"'blurAndSubmit'"})]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"undefined"})," defaults to ",(0,l.jsx)(n.code,{children:"'blurAndSubmit'"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"For multiline inputs:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"'newline'"})," adds a newline"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"undefined"})," defaults to ",(0,l.jsx)(n.code,{children:"'newline'"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"For both single line and multiline inputs:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"'submit'"})," will only send a submit event and not blur the input"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"'blurAndSubmit"}),"' will both blur the input and send a submit event"]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('submit', 'blurAndSubmit', 'newline')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"textalign",children:(0,l.jsx)(n.code,{children:"textAlign"})}),"\n",(0,l.jsx)(n.p,{children:"Align the input text to the left, center, or right sides of the input field."}),"\n",(0,l.jsxs)(n.p,{children:["Possible values for ",(0,l.jsx)(n.code,{children:"textAlign"})," are:"]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"left"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"center"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"right"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('left', 'center', 'right')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"textcontenttype-ios",children:[(0,l.jsx)(n.code,{children:"textContentType"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsx)(n.p,{children:"Give the keyboard and the system information about the expected semantic meaning for the content that users enter."}),"\n",(0,l.jsxs)(n.admonition,{type:"note",children:[(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.a,{href:"#autocomplete",children:(0,l.jsx)(n.code,{children:"autoComplete"})}),", provides the same functionality and is available for all platforms. You can use ",(0,l.jsx)(n.a,{href:"/docs/next/platform#select",children:(0,l.jsx)(n.code,{children:"Platform.select"})})," for differing platform behaviors."]}),(0,l.jsxs)(n.p,{children:["Avoid using both ",(0,l.jsx)(n.code,{children:"textContentType"})," and ",(0,l.jsx)(n.code,{children:"autoComplete"}),". For backwards compatibility, ",(0,l.jsx)(n.code,{children:"textContentType"})," takes precedence when both properties are set."]})]}),"\n",(0,l.jsxs)(n.p,{children:["You can set ",(0,l.jsx)(n.code,{children:"textContentType"})," to ",(0,l.jsx)(n.code,{children:"username"})," or ",(0,l.jsx)(n.code,{children:"password"})," to enable autofill of login details from the device keychain."]}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"newPassword"})," can be used to indicate a new password input the user may want to save in the keychain, and ",(0,l.jsx)(n.code,{children:"oneTimeCode"})," can be used to indicate that a field can be autofilled by a code arriving in an SMS."]}),"\n",(0,l.jsxs)(n.p,{children:["To disable autofill, set ",(0,l.jsx)(n.code,{children:"textContentType"})," to ",(0,l.jsx)(n.code,{children:"none"}),"."]}),"\n",(0,l.jsxs)(n.p,{children:["Possible values for ",(0,l.jsx)(n.code,{children:"textContentType"})," are:"]}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"none"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"addressCity"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"addressCityAndState"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"addressState"})}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdate"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdateDay"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdateMonth"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"birthdateYear"})," (iOS 17+)"]}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"countryName"})}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardExpiration"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardExpirationMonth"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardExpirationYear"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardFamilyName"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardGivenName"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardMiddleName"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardName"})," (iOS 17+)"]}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"creditCardNumber"})}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardSecurityCode"})," (iOS 17+)"]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.code,{children:"creditCardType"})," (iOS 17+)"]}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"emailAddress"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"familyName"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"fullStreetAddress"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"givenName"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"jobTitle"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"location"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"middleName"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"name"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"namePrefix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"nameSuffix"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"newPassword"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"nickname"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"oneTimeCode"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"organizationName"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"password"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"postalCode"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"streetAddressLine1"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"streetAddressLine2"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"sublocality"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"telephoneNumber"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"URL"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"username"})}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('none', 'addressCity', 'addressCityAndState', 'addressState', 'birthdate', 'birthdateDay', 'birthdateMonth', 'birthdateYear', 'countryName', 'creditCardExpiration', 'creditCardExpirationMonth', 'creditCardExpirationYear', 'creditCardFamilyName', 'creditCardGivenName', 'creditCardMiddleName', 'creditCardName', 'creditCardNumber', 'creditCardSecurityCode', 'creditCardType', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'newPassword', 'nickname', 'oneTimeCode', 'organizationName', 'password', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'URL', 'username')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"passwordrules-ios",children:[(0,l.jsx)(n.code,{children:"passwordRules"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["When using ",(0,l.jsx)(n.code,{children:"textContentType"})," as ",(0,l.jsx)(n.code,{children:"newPassword"})," on iOS we can let the OS know the minimum requirements of the password so that it can generate one that will satisfy them. In order to create a valid string for ",(0,l.jsx)(n.code,{children:"PasswordRules"})," take a look to the ",(0,l.jsx)(n.a,{href:"https://developer.apple.com/password-rules/",children:"Apple Docs"}),"."]}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsx)(n.p,{children:"If passwords generation dialog doesn't appear please make sure that:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:["AutoFill is enabled: ",(0,l.jsx)(n.strong,{children:"Settings"})," \u2192 ",(0,l.jsx)(n.strong,{children:"Passwords & Accounts"}),' \u2192 toggle "On" the ',(0,l.jsx)(n.strong,{children:"AutoFill Passwords"}),","]}),"\n",(0,l.jsxs)(n.li,{children:["iCloud Keychain is used: ",(0,l.jsx)(n.strong,{children:"Settings"})," \u2192 ",(0,l.jsx)(n.strong,{children:"Apple ID"})," \u2192 ",(0,l.jsx)(n.strong,{children:"iCloud"})," \u2192 ",(0,l.jsx)(n.strong,{children:"Keychain"}),' \u2192 toggle "On" the ',(0,l.jsx)(n.strong,{children:"iCloud Keychain"}),"."]}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"style",children:(0,l.jsx)(n.code,{children:"style"})}),"\n",(0,l.jsx)(n.p,{children:"Note that not all Text styles are supported, an incomplete list of what is not supported includes:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderLeftWidth"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderTopWidth"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderRightWidth"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderBottomWidth"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderTopLeftRadius"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderTopRightRadius"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderBottomRightRadius"})}),"\n",(0,l.jsx)(n.li,{children:(0,l.jsx)(n.code,{children:"borderBottomLeftRadius"})}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/style",children:"Styles"})}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/text#style",children:"Text"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"textbreakstrategy-android",children:[(0,l.jsx)(n.code,{children:"textBreakStrategy"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["Set text break strategy on Android API Level 23+, possible values are ",(0,l.jsx)(n.code,{children:"simple"}),", ",(0,l.jsx)(n.code,{children:"highQuality"}),", ",(0,l.jsx)(n.code,{children:"balanced"})," The default value is ",(0,l.jsx)(n.code,{children:"highQuality"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"enum('simple', 'highQuality', 'balanced')"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"underlinecolorandroid-android",children:[(0,l.jsx)(n.code,{children:"underlineColorAndroid"})," ",(0,l.jsx)("div",{className:"label android",children:"Android"})]}),"\n",(0,l.jsxs)(n.p,{children:["The color of the ",(0,l.jsx)(n.code,{children:"TextInput"})," underline."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:(0,l.jsx)(n.a,{href:"/docs/0.78/colors",children:"color"})})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"value",children:(0,l.jsx)(n.code,{children:"value"})}),"\n",(0,l.
1jsxs)(n.p,{children:["The value to show for the text input. ",(0,l.jsx)(n.code,{children:"TextInput"})," is a controlled component, which means the native value will be forced to match this value prop if provided. For most uses, this works great, but in some cases this may cause flickering - one common cause is preventing edits by keeping value the same. In addition to setting the same value, either set ",(0,l.jsx)(n.code,{children:"editable={false}"}),", or set/update ",(0,l.jsx)(n.code,{children:"maxLength"})," to prevent unwanted edits without flicker."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"string"})})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"linebreakstrategyios-ios",children:[(0,l.jsx)(n.code,{children:"lineBreakStrategyIOS"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["Set line break strategy on iOS 14+. Possible values are ",(0,l.jsx)(n.code,{children:"none"}),", ",(0,l.jsx)(n.code,{children:"standard"}),", ",(0,l.jsx)(n.code,{children:"hangul-word"})," and ",(0,l.jsx)(n.code,{children:"push-out"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{children:"Type"}),(0,l.jsx)(n.th,{children:"Default"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsxs)(n.td,{children:["enum(",(0,l.jsx)(n.code,{children:"'none'"}),", ",(0,l.jsx)(n.code,{children:"'standard'"}),", ",(0,l.jsx)(n.code,{children:"'hangul-word'"}),", ",(0,l.jsx)(n.code,{children:"'push-out'"}),")"]}),(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"'none'"})})]})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"linebreakmodeios-ios",children:[(0,l.jsx)(n.code,{children:"lineBreakModeIOS"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["Set line break mode on iOS. Possible values are ",(0,l.jsx)(n.code,{children:"wordWrapping"}),", ",(0,l.jsx)(n.code,{children:"char"}),", ",(0,l.jsx)(n.code,{children:"clip"}),", ",(0,l.jsx)(n.code,{children:"head"}),", ",(0,l.jsx)(n.code,{children:"middle"})," and ",(0,l.jsx)(n.code,{children:"tail"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{children:"Type"}),(0,l.jsx)(n.th,{children:"Default"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsxs)(n.td,{children:["enum(",(0,l.jsx)(n.code,{children:"'wordWrapping'"}),", ",(0,l.jsx)(n.code,{children:"'char'"}),", ",(0,l.jsx)(n.code,{children:"'clip'"}),", ",(0,l.jsx)(n.code,{children:"'head'"}),", ",(0,l.jsx)(n.code,{children:"'middle'"}),", ",(0,l.jsx)(n.code,{children:"'tail'"}),")"]}),(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"'wordWrapping'"})})]})})]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsxs)(n.h3,{id:"disablekeyboardshortcuts-ios",children:[(0,l.jsx)(n.code,{children:"disableKeyboardShortcuts"})," ",(0,l.jsx)("div",{className:"label ios",children:"iOS"})]}),"\n",(0,l.jsxs)(n.p,{children:["If ",(0,l.jsx)(n.code,{children:"true"}),", the keyboard shortcuts (undo/redo and copy buttons) are disabled. The default value is ",(0,l.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.th,{children:"Type"})})}),(0,l.jsx)(n.tbody,{children:(0,l.jsx)(n.tr,{children:(0,l.jsx)(n.td,{children:"bool"})})})]}),"\n",(0,l.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,l.jsx)(n.h3,{id:"focus",children:(0,l.jsx)(n.code,{children:".focus()"})}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-tsx",metastring:'title="React TSX"',children:"focus();\n"})}),"\n",(0,l.jsx)(n.p,{children:"Makes the native input request focus."}),"\n",(0,l.jsx)(n.h3,{id:"blur",children:(0,l.jsx)(n.code,{children:".blur()"})}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-tsx",metastring:'title="React TSX"',children:"blur();\n"})}),"\n",(0,l.jsx)(n.p,{children:"Makes the native input lose focus."}),"\n",(0,l.jsx)(n.h3,{id:"clear",children:(0,l.jsx)(n.code,{children:"clear()"})}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-tsx",metastring:'title="React TSX"',children:"clear();\n"})}),"\n",(0,l.jsxs)(n.p,{children:["Removes all text from the ",(0,l.jsx)(n.code,{children:"TextInput"}),"."]}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"isfocused",children:(0,l.jsx)(n.code,{children:"isFocused()"})}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-tsx",metastring:'title="React TSX"',children:"isFocused(): boolean;\n"})}),"\n",(0,l.jsxs)(n.p,{children:["Returns ",(0,l.jsx)(n.code,{children:"true"})," if the input is currently focused; ",(0,l.jsx)(n.code,{children:"false"})," otherwise."]}),"\n",(0,l.jsx)(n.h1,{id:"known-issues",children:"Known issues"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.a,{href:"https://github.com/facebook/react-native/issues/19096",children:"react-native#19096"}),": Doesn't support Android's ",(0,l.jsx)(n.code,{children:"onKeyPreIme"}),"."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.a,{href:"https://github.com/facebook/react-native/issues/19366",children:"react-native#19366"}),": Calling .focus() after closing Android's keyboard via back button doesn't bring keyboard up again."]}),"\n",(0,l.jsxs)(n.li,{children:[(0,l.jsx)(n.a,{href:"https://github.com/facebook/react-native/issues/26799",children:"react-native#26799"}),": Doesn't support Android's ",(0,l.jsx)(n.code,{children:"secureTextEntry"})," when ",(0,l.jsx)(n.code,{children:'keyboardType="email-address"'})," or ",(0,l.jsx)(n.code,{children:'keyboardType="phone-pad"'}),"."]}),"\n"]})]})}function a(e={}){let{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(h,{...e})}):h(e)}},43023(e,n,d){d.d(n,{R:()=>r,x:()=>c});var i=d(63696);let l={},s=i.createContext(l);function r(e){let n=i.useContext(s);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:r(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.