0.1.29 • Published 2 months ago
react-native-contains v0.1.29
react-native-contains
Universal element contains for react, react-native, and react-native web
Example 1
import { useRef } from "react",
import { View } from "react-native",
import contains from "react-native-contains";
function Component() {
const ref = useRef();
return (
<View>
<View ref={ref}>
<View onPress={((event) => {
contains(ref.current, event.target); // true
})}/>
</View>
<View onPress={((event) => {
contains(ref.current, event.target); // false
})}/>
</View>
)
}
Documentation
0.1.13
4 months ago
0.1.14
4 months ago
0.1.15
4 months ago
0.1.27
3 months ago
0.1.29
2 months ago
0.1.20
3 months ago
0.1.21
3 months ago
0.1.22
3 months ago
0.1.23
3 months ago
0.1.24
3 months ago
0.1.25
3 months ago
0.1.26
3 months ago
0.1.16
4 months ago
0.1.17
4 months ago
0.1.18
3 months ago
0.1.19
3 months ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago