How to use the react-instantsearch-native.connectInfiniteHits function in react-instantsearch-native

To help you get started, we’ve selected a few react-instantsearch-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / doc-code-samples / React InstantSearch Native / getting-started / src / InfiniteHits.js View on Github external
onEndReached={() => hasMore && refine()}
    renderItem={({ item }) => (
      
    )}
  />
);

InfiniteHits.propTypes = {
  hits: PropTypes.arrayOf(PropTypes.object).isRequired,
  hasMore: PropTypes.bool.isRequired,
  refine: PropTypes.func.isRequired,
};

export default connectInfiniteHits(InfiniteHits);
github algolia / create-instantsearch-app / react-instantsearch-native / src / InfiniteHits.js View on Github external
)}
  />
);

InfiniteHits.propTypes = {
  hits: PropTypes.arrayOf(PropTypes.object).isRequired,
  hasMore: PropTypes.bool.isRequired,
  refine: PropTypes.func.isRequired,
};

export default connectInfiniteHits(InfiniteHits);

react-instantsearch-native

⚡ Lightning-fast search for React Native, by Algolia

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis