Closed douglasjunior closed 3 years ago
Bump version 6.5.4-alpha.2
@douglasjunior I'm using this version, it works fine so far, including in modal, however, I have a question. If I use it in a page with FlatList, it will only work if the FlatList is the only element in the screen. If there is other element outside of it, it will make the screen jump out and overflow.
Keyboard off:
Keyboard on:
The code is something like this:
<SafeAreaView style={globalStyles.safeArea}>
<FlatList... />
<CommentForm postId={data.id} />
</SafeAreaView>
So if I put the CommentForm
inside FlatList ListHeaderComponent
or ListFooterComponent
, it should be fine, but I don't want that as it will make the UI more complex to achive the design (or not? I'm new to RN so not sure).
How to make it stay inside the screen as show below?
Hi @longprao, thanks for the feedback!
As mentioned here #63, I think that IQKeyboardManager don't will help in this case, so de best option is to use something like the KeyboardAvoidingView.
To try this version, use:
Or
Because IQKeyboardManager is written in
Swift
, you need to enableSwift
on your native Xcode project.ios/YourAppName.xcworkspace
in XcodeYourAppName
in theProject Navigator
on the left, and clickNew File
.Swift
file to the project (make sure thatYourAppName
target is selected when adding)Swift
file then.More installation details: https://github.com/douglasjunior/react-native-keyboard-manager/blob/iqkeyboardmanager-update/README.md
The update is started by @zoontek on #64, but I need help to validate, track and release this version.
This change represents a major update in IQKeyboardManager, so there are some questions to be answered: