0.1.29 • Published 9 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
11 months ago
0.1.14
11 months ago
0.1.15
11 months ago
0.1.27
10 months ago
0.1.29
9 months ago
0.1.20
10 months ago
0.1.21
10 months ago
0.1.22
10 months ago
0.1.23
10 months ago
0.1.24
10 months ago
0.1.25
10 months ago
0.1.26
10 months ago
0.1.16
11 months ago
0.1.17
11 months ago
0.1.18
10 months ago
0.1.19
10 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