Scroll doesn't appear when keyboard is open, neither it change the position of popup views (displaying on center)
<View style={{flex:1, justifyContent:'center', alignItems:'center'}}>
<TextInput>some text....</TextInput>
</View>
Expected Output: TextInput must be centered align (both vertically and horizontally )
->This runs perfectly until we focus on textInput.
->But in some cases, when we focus on TextInput and keyboard is appeared on screen, we expect TextInput to move upward to align itself (as its parent set it to centered align) but it didn't move and stick just above the keyboard (most weird thing is that it mostly occurred after noon).
same case happens with ScrollView,
<ScrollView style={{flex:1, justifyContent:'center', alignItems:'center'}}> <TextInput>some text....</TextInput> <TextInput>some text....</TextInput> <TextInput>some text....</TextInput> <TextInput>some text....</TextInput> </ScrollView>
when i focus on Last TextInput , scrollbar don't appears
What version of React Native are you using ? Android, iOS or both?
Can you provide a well formatted sample ? You can even host it on https://rnplay.org/.
my version is 0.20.0 facing issue on both Ios and Android but both behaves differently. in ios focused TextInput gets hide behind from keyboard, and in android it moves to up(i.e. good ) but again user cant scroll up or down.
Following sample will generate this case or i also created it on https://rnplay.org/apps/HC2Yag
.
(
<TextInput value='1' />
<TextInput value='2' />
<TextInput value='3' />
<TextInput value='4' />
<TextInput value='5' />
<TextInput value='6' />
<TextInput value='7' />
<TextInput value='8' />
<TextInput value='9' />
<TextInput value='10' />
-> focus on 9 no. textinput than it will move upward but we will not able to scroll to 1 or even 10 no textinput unless we hide the keyboard
On Wed, May 25, 2016 at 7:01 PM, Nicolas Charpentier < [email protected]> wrote:
What version of React Native are you using ? Android, iOS or both?
Can you provide a well formatted sample ? You can even host it on https://rnplay.org/.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/facebook/react-native/issues/7740#issuecomment-221575882
any update?????
I have found another issue and the file KeyboardAvoidingView.js https://github.com/facebook/react-native/issues/8180#issuecomment-227707119
Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/scroll-doesnt-appear-when-keyboard-is-open-neither-it-change-the-position-of-popup-views-displaying-on-center
Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.