-
Notifications
You must be signed in to change notification settings - Fork 646
Ability to provide custom ScrollableComponent ref prop (ie innerRef) #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@alvaromb can you please merge this? I've tested and it's working and is retrocompatible with current behavior |
|
@slorber looking into this change atm. |
|
I would be more comfortable by applying your change and moving from HOC to HOF (high order function). How do you feel about that, @slorber? |
|
If that's ok for you, I can provide HOF implementation today. |
|
not sure what you mean, but if you propose |
|
Yes! that's my proposal! |
|
great please ping me when you have a new version and I'll test it |
|
@alvaromb have you been able to work on this? I'm waiting for publishing my app ;) I can work on a PR myself if you want, as long as you will merge it rapidly (otherwise I'd have to publish a fork) |
|
@slorber I'll have a slot to implement that tomorrow. If you can send a PR before, I'll get that merged today. |
|
I can wait some days :) Tell me if you didn't find time to do it tomorrow and I'll do it. export const ScrollIntoViewWrapper = configOrComp => {
if ( typeof configOrComp === "object" ) {
return Comp => ScrollIntoViewWrapperHOC(Comp,configOrComp);
}
else {
return ScrollIntoViewWrapperHOC(configOrComp);
}
}; |
|
@alvaromb unless you want to do it soon, I'm going to make another PR this week |
|
@slorber we're in the middle of a very very important release and we do not have time right now to handle this reviews. I've added you as a collaborator, how do you feel about being collab & having release access? |
|
I think you should be able to merge PR's even if the |
|
Thanks, I'll make a PR for that probably today or tomorrow. If you want to to release i'm also @slorber on npm |
|
I've also added you on npm. Please don't forget to write Release Notes: https://github.com/APSL/react-native-keyboard-aware-scroll-view/releases |
|
superseded by #288 |
This permits to integrate more easily with other existing ScrollView wrappers/HOC's
To give more insight on my usecase, here's real code of my app (that will work once this PR is merged).
Note that I use glamorous ScrollView on purpose so in any case I need to pass it
innerRefprop, not ref.