Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirinzhang/react-native-inwindow
Detects if a element is inside a ScrollView or a ListView and reports back
https://github.com/mirinzhang/react-native-inwindow
react-native react-native-component
Last synced: 3 days ago
JSON representation
Detects if a element is inside a ScrollView or a ListView and reports back
- Host: GitHub
- URL: https://github.com/mirinzhang/react-native-inwindow
- Owner: mirinzhang
- Created: 2018-10-19T13:14:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T07:00:02.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T13:43:55.090Z (27 days ago)
- Topics: react-native, react-native-component
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-inwindow
Detects if a element is inside a ScrollView or a ListView and reports back
### Install
```bash
npm i -S react-native-inwindow
```### Usage
```javascript
import { ScrollView, View, Text } from 'react-native';
import InWindow from 'react-native-inwindow';onViewChange = (isVisible) => {
if(isVisible) {
console.log('component is inside window');
}
}render() {
return (
react-native-inwindow
);
}
```