Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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



);
}
```