-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Set color of refresh indicator in FlatList #13392
Comments
Flatlist is just a higher component based on Virtualizedlist . Look at the source code here https://github.com/facebook/react-native/blob/master/Libraries/Lists/FlatList.js So , in order to change the refreshControl color , set the property in the source code or add your own props to it . Run react-native start again to see the changes . |
Sorry , you have to pass the props into Scrollview Component in VirtualizedList class . See https://github.com/facebook/react-native/blob/master/Libraries/Lists/VirtualizedList.js |
Would be useful if this was a part of the React-Native codebase. EDIT: @ragnorc @PARAGJYOTI Seems you can pass your own RefreshControl to the FlatList and use the props that way. Sample:
Documentation: https://facebook.github.io/react-native/docs/refreshcontrol.html |
@MattyK14 does that still work? Can't find it documented anywhere, seems like |
@Jacse I'm not on 0.46 yet, but as of 0.45.1 it still works. |
just add colors props on RefreshControl |
With RefreshControl the color of the refresh indicator and some other props could be set. Is this still possible with FlatList?
The text was updated successfully, but these errors were encountered: