Issue with textInput
<ScrollView automaticallyAdjustContentInsets={true} keyboardShouldPersistTaps="handled" keyboardDismissMode="none"> <TextInput placeholder="Comments" multiline={true} value={TextValue} onChangeText={value => setTextValue(value)} /> </ScrollView>
inside ScrollView is not working it just get closed on every tap on the keyboard i have tried different approaches but failed to get the inputs... automaticallyAdjustContentInsets={true} keyboardShouldPersistTaps="handled" keyboardDismissMode="none"
and I came to know that this error is occuring due to state updating in onchangetext in your scrollview kindly provide any solution or alternate for it....
hi @wHat0 , Can you create a Repo for me to debug to support for you?
Hey Hope you are doing great. Here is the Repo for you. [https://github.com/wHat0/StateInNestedScrollView]
https://github.com/wHat0/StateInNestedScrollView
Hello, facing the same issue, did you find any solution ? @hoaphantn7604 any suggestions ?
Thanks.
Got it working, ListHeaderComponent={xxx} instead of ListHeaderComponent={() => <>{xxx}} do the trick for me
i am facing the same issue anyone have any solution ?
Yes their are two solution
-
1st one is instead of using onChangeText={(value) => setTextValue(value)} use onChangeText={ setTextValue}
-
Other is to make a separate component of TextInput with its view and get the value from their.
i am facing the same issue anyone have any solution ?
Yes their are two solution
1st one is instead of
using onChangeText={(value) => setTextValue(value)}
use onChangeText={ setTextValue}
Other is to make a separate component of TextInput with its view and get the value from their.
i am facing the same issue anyone have any solution ?
Yes their are two solution
1st one is instead of using onChangeText={(value) => setTextValue(value)} use onChangeText={ setTextValue} Other is to make a separate component of TextInput with its view and get the value from their.
I am facing this issue as well, could you be more specific on how you solved it? Thanks in advance