hyochan / react-native-masonry-list

The Masonry List implementation which has similar implementation as the `FlatList` in React Native
MIT License
393 stars 55 forks source link

Is there a way to disable "pull to refresh"? #28

Closed GollyJer closed 2 years ago

GollyJer commented 2 years ago

I feel like pull-to-refresh should be easy to disable but I'm missing how. Possible?

Thanks.

tareksmoubarak commented 2 years ago

Hello, Just don't set: refreshing and onRefresh props

GollyJer commented 2 years ago

Hi @tareksmoubarak. Thanks for the response. I'm not setting those props but it still shows the pull-to-refresh indicator. image

Strange.

GollyJer commented 2 years ago

OK, just had a look at the code and the refreshing state is hard coded. const [isRefreshing, setIsRefreshing] = useState(false);

Looks like this is intended behavior. Closing this issue.

YahyaBagia commented 2 years ago

@hyochan any way to prevent Pull to refresh ?