Creates an area that makes the sides or specific points snappable by the child
2023-06-18.18-03-53.mp4
npm install react-native-snap-area
import SnapArea from 'react-native-snap-area';
const snapPoints = [
[1, 1],
[1, 1, 1],
[1, 1],
];
// Check out the example App.tsx file file to test it
function App() {
return (
<SnapArea snapPoints={snapPoints}>
<View
style={[
styles.head,
{ backgroundColor: 'black' },
childChanged ? { width: 75, height: 150 } : undefined,
]}
/>
</SnapArea>
)
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library