Enable Disable RefreshControl in React Native Android Only

Hello friends, In today’s tutorial we would learn about Enabled prop of RefreshControl component in react native. This prop supports Boolean True False value. If we pass Enabled as False then it will Disable the RefreshControl and pull to refresh will not work. We can also control this value using State as per our choice of coding. To understand easily I’m just using False value here. Now the main thing is that Enable prop is Android only prop and does work only in Android devices. So for now there is now way to disable RefreshControl in iOS devices. So in this tutorial we would learn about Enable Disable RefreshControl in React Native Android Only.

Contents in this project Enable Disable RefreshControl in React Native Android Only :-

1. Friends, I had already made tutorial regarding RefreshControl component. In this tutorial we’re just writing one more line of code Here today. So I thing there is no need to explain you all the code again to you. If you want to understand all the source code I’m writing here you can READ my THIS TUTORIAL HERE.

2. Below is the Refresh Control component code with enabled prop false value.

3. Complete Source Code for App.js File :-

Screenshot :-

Enable Disable RefreshControl in React Native Android Only

Leave a Reply

Your email address will not be published. Required fields are marked *