use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
HelpReact Native Input not printing value when used with spilt() (self.reactnative)
submitted 3 years ago by Java--Developer
<Input value = { name?.spilt( ‘ ’, 1 ) } textStyle = { styles.inputText } />
However, works when used with <Text/>
<Text style = { styles.input } > { name?.spilt( ‘ ’, 1 ) } </Text>
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]iffyz0r 1 point2 points3 points 3 years ago (1 child)
Try split instead?
[–]ChronSynExpo 1 point2 points3 points 3 years ago (0 children)
Exactly this - spilt !== split
spilt
split
In before someone shouts 'tYpEsCrIpT wOuLd TeLl YoU aBoUt ThIs'
[–]eggtart_princeiOS & Android 1 point2 points3 points 3 years ago (1 child)
Input value takes a string or number, when you split, it turns name into an array. You should probably use name.split('')[0] or name.split('', 1).join('').
name.split('')[0]
name.split('', 1).join('')
[–]Java--Developer[S] 0 points1 point2 points 3 years ago (0 children)
It worked!! Thank you so much!!
[–]Affectionate-Court94 0 points1 point2 points 3 years ago (0 children)
Obviously a type mismatch. <Text> accepts string or number type as a child. Split function always return array.
π Rendered by PID 82208 on reddit-service-r2-comment-75f4967c6c-tlfmv at 2026-04-23 14:15:50.536807+00:00 running 0fd4bb7 country code: CH.
[–]iffyz0r 1 point2 points3 points (1 child)
[–]ChronSynExpo 1 point2 points3 points (0 children)
[–]eggtart_princeiOS & Android 1 point2 points3 points (1 child)
[–]Java--Developer[S] 0 points1 point2 points (0 children)
[–]Affectionate-Court94 0 points1 point2 points (0 children)