Conversation
| position: 'absolute', | ||
| })) | ||
|
|
||
| const BottomSheetComponent = ( |
There was a problem hiding this comment.
Where is type for Props
| // containerHeight={_providedContainerHeight} | ||
| // containerOffset={animatedContainerOffset} | ||
| // topInset={topInset} | ||
| // bottomInset={bottomInset} |
There was a problem hiding this comment.
please refactor to remove those unused comment
There was a problem hiding this comment.
this component isn't final and that comment is helpful for the next update
| return animatedContainerTranslateY.value - animatedKeyboardHeight.value | ||
| }, []) | ||
|
|
||
| // const animatedSnapPoints = useNormalizedSnapPoints( |
There was a problem hiding this comment.
same as above
|
|
||
| return ( | ||
| <> | ||
| <Button text="wefiowejfi" onPress={() => ref?.current?.open?.()} /> |
There was a problem hiding this comment.
I know the text wefiowejfi is just dummy text to display storybook but can we change the text for more clearly and and relate to bottom sheet?
| detached, | ||
| style, | ||
| children, | ||
| }: BottomSheetContainerProps) => { |
There was a problem hiding this comment.
Please change to use this config instead because we already agreed on it
const Component: React.FC<ComponentProps> = ({}) => {}
| import {View, Text} from 'react-native' | ||
| import React from 'react' | ||
|
|
||
| const BottomSheetContent = () => { |
There was a problem hiding this comment.
Do we need this one? If not please remove it
example/package.json
Outdated
| "styled-components": "^5.3.9", | ||
| "react-native-gesture-handler": "^2.9.0", | ||
| "react-native-reanimated": "^3.0.2", | ||
| "react-native-reanimated": "3.0.2", |
There was a problem hiding this comment.
Why we need react-native-reanimated as a dev dependencies?
| component: BottomSheet, | ||
| } as ComponentMeta<typeof BottomSheet> | ||
|
|
||
| export const Basic: ComponentStory<typeof BottomSheet> = args => { |
There was a problem hiding this comment.
Please use rest instead of args
| "react-native": "0.71.4", | ||
| "react-native-builder-bob": "^0.20.4", | ||
| "react-native-gesture-handler": "^2.13.1", | ||
| "react-native-reanimated": "^3.5.4", |
There was a problem hiding this comment.
Why we need this lib in dev dependencies?
There was a problem hiding this comment.
because i'll get an error 'not found lib'. if i don't add 2 libs in dev
| [animatedIsVisible, handleClose, handleOpen], | ||
| ) | ||
|
|
||
| useImperativeHandle(ref, () => contextValues) |
There was a problem hiding this comment.
Why we need export contextValues?
There was a problem hiding this comment.
because we can use this context inside and we can custom component outside
There was a problem hiding this comment.
I don't get what you mean. can you give some example?
| padding: theme?.sizes?.petite, | ||
| })) | ||
|
|
||
| const BottomSheetContentComponent: React.FC<BottomSheetContentProps> = ({style, children}) => ( |
There was a problem hiding this comment.
why we need BottomSheetContentComponent? Can we use direct Container?
There was a problem hiding this comment.
because BottomSheetContent only show content. BottomSheetContentContainer has calculate content height
There was a problem hiding this comment.
I mean Container not BottomSheetContentContainer. because the implement for BottomSheetContentComponent just render the Container
There was a problem hiding this comment.
okay we will talk about it at meeting
src/components/BottomSheet/BottomSheetContentContainer/BottomSheetContentContainer.tsx
Outdated
Show resolved
Hide resolved
src/components/BottomSheet/BottomSheetHeader/BottomSheetHeader.tsx
Outdated
Show resolved
Hide resolved
|
|
||
| return ( | ||
| <Container style={style}> | ||
| <Title style={animatedTitleStyle} numberOfLines={1}> |
There was a problem hiding this comment.
Title use the Text component
There was a problem hiding this comment.
Text component it's not support animated
There was a problem hiding this comment.
what is animation you apply for this title?
src/components/BottomSheet/types.ts
Outdated
| import type {ViewStyle} from 'react-native' | ||
| import type {BottomSheetContextType} from './contexts/BottomSheetProvider' | ||
|
|
||
| export interface BottomSheetProps { |
There was a problem hiding this comment.
There are lots of type you put inside the component so why this type you create new file?
There was a problem hiding this comment.
because a type file it's help us clean code in that component
There was a problem hiding this comment.
We should make it consistent. All the component that we already implemented don't have type.ts
|
|
||
| return ( | ||
| <Container style={style}> | ||
| <Title style={animatedTitleStyle} numberOfLines={1}> |
There was a problem hiding this comment.
what is animation you apply for this title?
| [animatedIsVisible, handleClose, handleOpen], | ||
| ) | ||
|
|
||
| useImperativeHandle(ref, () => contextValues) |
There was a problem hiding this comment.
I don't get what you mean. can you give some example?

Summary
Features
Bugs
Check List
Proof of Completeness

OR Video link IOSScreen.Recording.2023-09-25.at.10.26.49.mov
ANDROID
Screen.Recording.2023-09-25.at.10.28.16.mov