Giter Club home page Giter Club logo

Comments (40)

JosephDev avatar JosephDev commented on September 12, 2024 44

@wootwoot1234 Do you test it with <ScrollView/>? After removing keyboard, it makes extra slack on the bottom. um...

from react-native-keyboard-aware-scroll-view.

JosephDev avatar JosephDev commented on September 12, 2024 13

@MovingGifts I think <KeyboardAvoidingView /> is not mature to go production. Currently, stick on this library.

from react-native-keyboard-aware-scroll-view.

Lepozepo avatar Lepozepo commented on September 12, 2024 5

@JosephDev this fixes the weird extra space on android and makes the height calculate correctly when a ScrollView is a child of KeyboardAvoidingView. Hopefully the react native team will merge the open PR soon

from react-native-keyboard-aware-scroll-view.

npomfret avatar npomfret commented on September 12, 2024 5

Using KeyboardAvoidingView inside a ScrollView on android does nothing with RN0.42 as far as I can see. Or is there a trick to using correctly?

from react-native-keyboard-aware-scroll-view.

Palisand avatar Palisand commented on September 12, 2024 4

Unstable indeed:
https://github.com/facebook/react-native/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20keyboardavoidingview%20in%3Atitle%20

from react-native-keyboard-aware-scroll-view.

MovingGifts avatar MovingGifts commented on September 12, 2024 3

@JosephDev I have the same issue with <ScrollView/>. When the keyboard is removed, there is extra slack on the bottom, until you manually scroll the scrollview to bring it back down to cover the slack.

Did you find a solution using <KeyboardAvoidingView /> with <ScrollView/> where it automatically handles the slack removal on keyboard removal?

from react-native-keyboard-aware-scroll-view.

theodoregold avatar theodoregold commented on September 12, 2024 3

I think documentation could use some love. It seems like a good PR. I am trying it out, but for now I can't seem to figure out if it is suppose to be a spacer or some kind of wrapper. Current example doesn't seem to be working on android. Visuals would be nice too.

from react-native-keyboard-aware-scroll-view.

alvaromb avatar alvaromb commented on September 12, 2024 2

I don't think it's a good option to use both together in the same component.

from react-native-keyboard-aware-scroll-view.

Parrryy avatar Parrryy commented on September 12, 2024 2

@pgonzalez-santiago It worked fine, make sure you using the behaviour property height and not padding.

from react-native-keyboard-aware-scroll-view.

acrazing avatar acrazing commented on September 12, 2024 2

Maybe this is a perfect solution: https://medium.freecodecamp.com/how-to-make-your-react-native-app-respond-gracefully-when-the-keyboard-pops-up-7442c1535580

from react-native-keyboard-aware-scroll-view.

cihadturhan avatar cihadturhan commented on September 12, 2024 2

I tried RN built-in KeyboardAvoidingView, this library and some other but none of them worked out well.
Because, other libraries and styling interfere the position of the views and react-native somehow can't measure the exact position from a scrollview's top to text input's top position.

I ended up using /hackiftekhar/IQKeyboardManager for iOS. Android has a native keyboard avoiding support that you define in AndroidManifest.

from react-native-keyboard-aware-scroll-view.

tomauty avatar tomauty commented on September 12, 2024 1

I've tried to convert to KeyboardAvoidingView but consistently return to this library, especially for longer forms / scrollviews. This one is basically a plug-and-play replacement for a scrollview, in my experience.

from react-native-keyboard-aware-scroll-view.

j-mendez avatar j-mendez commented on September 12, 2024 1

For the keyboard avoiding view to properly work you need to have the keyboard as a parent of the scrollview and use the behavior of padding to properly work. @MovingGifts

from react-native-keyboard-aware-scroll-view.

rohitgoyal avatar rohitgoyal commented on September 12, 2024 1

Too many weird issue with this even now. :(

from react-native-keyboard-aware-scroll-view.

pgonzalez-santiago avatar pgonzalez-santiago commented on September 12, 2024 1

@iRoachie doesnt work. :( If I set "adjustResize" the keyboard wont push the view up (as in iOs) and it is what i'm trying.

from react-native-keyboard-aware-scroll-view.

npomfret avatar npomfret commented on September 12, 2024 1

Ah, it works but not if there's anything below the scrollview.

from react-native-keyboard-aware-scroll-view.

FDiskas avatar FDiskas commented on September 12, 2024 1

:D and problem is gone

from react-native-keyboard-aware-scroll-view.

alvaromb avatar alvaromb commented on September 12, 2024

I've seen that component @wootwoot1234, but I haven't used it yet. It would be great if it provided the same functionality of my component. The keyboard handling is something that I feel that should live in the core.

from react-native-keyboard-aware-scroll-view.

JosephDev avatar JosephDev commented on September 12, 2024

I am consideration <KeyboardAvoidingView /> component as @wootwoot1234
I followed react native docs, however it doesn't work as my expectation.
Please let me know if there is any update on this issue.

from react-native-keyboard-aware-scroll-view.

wootwoot1234 avatar wootwoot1234 commented on September 12, 2024

I have switched over to <KeyboardAvoidingView />. It's working great for me. I think there are three options: position, padding, and height. Try out each one, they all work a little different.

from react-native-keyboard-aware-scroll-view.

ikabar-tracxpoint avatar ikabar-tracxpoint commented on September 12, 2024

Hi @wootwoot1234,

I also tried to work with KeyboardAvoidingView but for some reason it does not work as I expect it too.

Will you be willing to share a sample of your code ?

from react-native-keyboard-aware-scroll-view.

MovingGifts avatar MovingGifts commented on September 12, 2024

@teodors @JosephDev Sounds good, I opened up an issue with a visual of the issue here. facebook/react-native#10765

from react-native-keyboard-aware-scroll-view.

mileung avatar mileung commented on September 12, 2024

When using KeyboardAwareScrollView with KeyboardAvoidingView there is a keyboard height white space at the bottom of the KeyboardAvoidingView.

from react-native-keyboard-aware-scroll-view.

theodoregold avatar theodoregold commented on September 12, 2024

@Lepozepo I did a search and there doesn't seem to be an open PR and even if there is, and they merge it. It is not going to be available until late (last day of) February. Or if you live that renegade life, early February for unstable. So, it still isn't going to be production ready for some time.

from react-native-keyboard-aware-scroll-view.

Lepozepo avatar Lepozepo commented on September 12, 2024

@teodors you're right. I'm testing it right now but I'm still running into weird bugs on Android specifically using "height" >_<

from react-native-keyboard-aware-scroll-view.

alvaromb avatar alvaromb commented on September 12, 2024

Folks, I'm currently searching for contributors for this lib. Is anyone interested?

from react-native-keyboard-aware-scroll-view.

 avatar commented on September 12, 2024

if you don't see any changed active keyboard changes, try wrapping an empty around the whole document

from react-native-keyboard-aware-scroll-view.

pgonzalez-santiago avatar pgonzalez-santiago commented on September 12, 2024

Hey @mileung, Did you fix the issue regarding the withe space in the bottom of the KeyboardAvoidingView? I'm having the same problem when soft keyboard is out.

Only happening on android, in iOs its working perfectly.

screen shot 2017-03-02 at 17 54 11

from react-native-keyboard-aware-scroll-view.

iRoachie avatar iRoachie commented on September 12, 2024

@pgonzalez-santiago react native 0.42 just released a change that might correct this.facebook/react-native@e3d4ace

from react-native-keyboard-aware-scroll-view.

pgonzalez-santiago avatar pgonzalez-santiago commented on September 12, 2024

@npomfret have you tried to android:windowSoftInputMode="adjustResize" in the androidManifest?

from react-native-keyboard-aware-scroll-view.

npomfret avatar npomfret commented on September 12, 2024

@pgonzalez-santiago yes, that's what it's set to.

from react-native-keyboard-aware-scroll-view.

tibbus avatar tibbus commented on September 12, 2024

I have tried to use it, doesn't work too well for me. I have tried all the options, sometimes works but with that bottom padding, sometimes doesn't work at all, pretty unstable for now.

from react-native-keyboard-aware-scroll-view.

Rolandisimo avatar Rolandisimo commented on September 12, 2024

@acrazing Followed that with ScrollView. Didn't manage to get it working. Though, if I remove the ScrollView, it pushes the content, alas the keyboard doesn't close after tapping outside an input field. (Plus, my content will inevitably be longer than the height of the screen) :(

Also, don't event want to try react-native-keyboard-aware-scrollview because it seems unmaintained.

from react-native-keyboard-aware-scroll-view.

sebgam avatar sebgam commented on September 12, 2024

works perfect using <KeyboardAvoidingView behavior={'height'} style={{alignItems: 'center',}}> keep in mind that you should not be inside a<ScrollView>

from react-native-keyboard-aware-scroll-view.

AlexHuicu avatar AlexHuicu commented on September 12, 2024

I had a view with <KeyboardAvoidingView> inside <ScrollView> and multiple items inside the <KeyboardAvoidingView>.
When keyboard was opened, the ScrollView size was huge, while user was being able to scroll it down a lot, even if there where no more views.
I tried to debug it and added onLayout prop in <KeyboardAvoidingView>.
Suddenly, the strange behaviour has stopped.

from react-native-keyboard-aware-scroll-view.

gregblass avatar gregblass commented on September 12, 2024

KeyboardAvoidingView just cost me like an hour and I still don't have it working right. Seems super wonky.

from react-native-keyboard-aware-scroll-view.

aquintiliano avatar aquintiliano commented on September 12, 2024

@cihadturhan you used this library with ReactNative? What else you have done to make it works? I am trying without success

from react-native-keyboard-aware-scroll-view.

winkelsdorf avatar winkelsdorf commented on September 12, 2024

@cihadturhan great suggestion! Works like a charm with a new RN 0.59 project, no need to configure anything. Thanks 👍

from react-native-keyboard-aware-scroll-view.

FDiskas avatar FDiskas commented on September 12, 2024

I tried RN build in but not worked for me. Here is all examples I tried - based on https://medium.freecodecamp.com/how-to-make-your-react-native-app-respond-gracefully-when-the-keyboard-pops-up-7442c1535580
react-native-keyboard-avoidance-examples_1574761604681.zip

from react-native-keyboard-aware-scroll-view.

rborn avatar rborn commented on September 12, 2024

I'll close this for being very old. Thanks for all the comments 😻

from react-native-keyboard-aware-scroll-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.