react-native-visibility-aware-view
v0.6.0
Published
A view that is aware of its visibility
Readme
react-native-visibility-aware-view
A view which is aware of its visibility. It also tracks itself when the view is scrolled or moved.
Starting from version 0.6.0 only the new arch architecture is supported.
Installation
yarn add react-native-visibility-aware-viewUsage
import { VisibilityAwareView } from "react-native-visibility-aware-view";
// ...
<VisibilityAwareView
minVisibleArea={0.5}
ignoreAppState={ignoreAppState}
onBecomeVisible={(event) => {}}
onBecomeInvisible={(event) => {}}
style={styles.box}
/>;Contributing
License
MIT
Made with create-react-native-library
