Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow dynamic snap points #81

Merged
merged 12 commits into from
Nov 27, 2020
Prev Previous commit
Next Next commit
chore: added default background
  • Loading branch information
gorhom committed Nov 22, 2020
commit 40f4956a719756dbc1c91af2c69170352aff8209
15 changes: 15 additions & 0 deletions src/components/defaultBackground/BottomSheetDefaultBackground.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React, { memo } from 'react';
import { View } from 'react-native';
import isEqual from 'lodash.isequal';
import { styles } from './styles';

const BottomSheetDefaultBackgroundComponent = () => (
<View pointerEvents="none" style={styles.container} />
);

const BottomSheetDefaultBackground = memo(
BottomSheetDefaultBackgroundComponent,
isEqual
);

export default BottomSheetDefaultBackground;
1 change: 1 addition & 0 deletions src/components/defaultBackground/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './BottomSheetDefaultBackground';
12 changes: 12 additions & 0 deletions src/components/defaultBackground/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { StyleSheet } from 'react-native';

export const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: -100,
backgroundColor: 'white',
},
});