Skip to content
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

what would be needed to implement this in React Native? #3

Open
faceyspacey opened this issue Mar 22, 2016 · 2 comments
Open

what would be needed to implement this in React Native? #3

faceyspacey opened this issue Mar 22, 2016 · 2 comments

Comments

@faceyspacey
Copy link

Any tips or thoughts you might have about this would be much appreciated.

@faceyspacey
Copy link
Author

I guess primarily you have to rewrite your code to inherit UIRefreshControl like this:

https://github.com/facebook/react-native/blob/a3ba25ed90b6896430f58a34eeaf831a953baeea/React/Views/RCTRefreshControl.m

Then make the refresh control manager file to bridge into React Native as you'll see if you scan down here:

https://github.com/facebook/react-native/tree/a3ba25ed90b6896430f58a34eeaf831a953baeea/React/Views

And then change a line or two here to wire into your native component:

https://github.com/facebook/react-native/blob/a3ba25ed90b6896430f58a34eeaf831a953baeea/Libraries/Components/RefreshControl/RefreshControl.js

@faceyspacey
Copy link
Author

I'm not that experienced at objective c or swift, but I do some experience--do you have any tips to implement UIRefreshControl? Maybe a quick checklist for me that you see off the top of your head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant