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: rename internal components
  • Loading branch information
gorhom committed Nov 22, 2020
commit 679d2844777395b50e52cf888db8a84536dd142c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import { View } from 'react-native';
import isEqual from 'lodash.isequal';
import { styles } from './styles';

const BottomSheetHandleComponent = () => {
const BottomSheetDefaultHandleComponent = () => {
return (
<View style={styles.container}>
<View style={styles.indicator} />
</View>
);
};

const BottomSheetHandle = memo(BottomSheetHandleComponent, isEqual);
const BottomSheetDefaultHandle = memo(
BottomSheetDefaultHandleComponent,
isEqual
);

export default BottomSheetHandle;
export default BottomSheetDefaultHandle;
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from './Handle';
export { default } from './BottomSheetDefaultHandle';
export type { BottomSheetHandleProps } from './types';
File renamed without changes.