-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Closed
Copy link
Labels
BugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.Platform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Resolution: PR SubmittedA pull request with a fix has been provided.A pull request with a fix has been provided.
Description
Description
When using the KeyboardAvoidingView with behavior set to height it works correctly the first time you open the keyboard, but after keyboard is dismissed it doesn't return to it's original position.
Recreation:
https://snack.expo.io/rJYAymwy-
The code below can be used to recreate this problem:
<View style={{flex: 1, backgroundColor: "blue"}}>
<KeyboardAvoidingView behavior="height" style={{ backgroundColor: "green", paddingTop: 22, flex: 1, justifyContent: 'center'}}>
<View>
<TextInput style={{height: 30, backgroundColor: "red"}} />
</View>
</KeyboardAvoidingView>
</View>
Additional Information
- React Native version: 0.43.4
- Development Operating System: MacOS
- Dev tools: This was shown on the IOS simulator but the problem also occurs on android
alialaa, Lily418, srinivasdamam, qmegas, bighitbiker3 and 84 more
Metadata
Metadata
Assignees
Labels
BugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.Platform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Resolution: PR SubmittedA pull request with a fix has been provided.A pull request with a fix has been provided.
