React native instantsearch pagination not working

refine() is not working in react-native

const InfiniteHits = ({ hits, hasMore, refine }) => {
    return <FlatList
        data={hits}
        keyExtractor={item => item.objectID}
        onEndReached={() => refine()}
        renderItem={({ item }) => (
          <CardListingItem item={item}/> 
        )}
      />
}

I tried another alternative using connectPagination also not working:

const Pagination = ({refine}) => {
  return <Button
    title="more"
    onPress={() => refine()}
  />
}
export const ConnectedPagination = connectPagination(Pagination)

Version:

  "algoliasearch": "^3.33.0", 
  "react-instantsearch-native": "^5.6.0", 

what’s the problem ?