-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92d4379
commit 1e81f38
Showing
10 changed files
with
105 additions
and
16 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
libs/features/src/lib/cart/cart.modal/cart.modal.content.scroll.native.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { PropsWithChildren, ReactElement, useRef } from 'react'; | ||
|
||
import { ScrollView } from 'react-native'; | ||
|
||
import { styles } from './cart.modal.module'; | ||
|
||
const CartModalScroll = ({ children }: PropsWithChildren): ReactElement => { | ||
const scrollViewRef = useRef<null | ScrollView>(null); | ||
return ( | ||
<ScrollView | ||
ref={(ref) => { | ||
scrollViewRef.current = ref; | ||
}} | ||
contentInsetAdjustmentBehavior="automatic" | ||
style={styles.cartContent} | ||
> | ||
{children} | ||
</ScrollView> | ||
); | ||
}; | ||
|
||
export default CartModalScroll; |
11 changes: 11 additions & 0 deletions
11
libs/features/src/lib/cart/cart.modal/cart.modal.content.scroll.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PropsWithChildren, ReactElement } from 'react'; | ||
|
||
import { UiElementLayout } from '@pokemon-pet-shop/ui'; | ||
|
||
import { styles } from './cart.modal.module'; | ||
|
||
const CartModalScroll = ({ children }: PropsWithChildren): ReactElement => { | ||
return <UiElementLayout className={styles.cartContent}>{children}</UiElementLayout>; | ||
}; | ||
|
||
export default CartModalScroll; |
43 changes: 43 additions & 0 deletions
43
libs/features/src/lib/cart/cart.modal/cart.modal.module.native.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { StyleSheet } from 'react-native'; | ||
|
||
export const styles = StyleSheet.create({ | ||
modal: { | ||
backgroundColor: 'white', | ||
position: 'relative', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}, | ||
cartContent: { | ||
padding: 15, | ||
height: '86%', | ||
flexGrow: 1, | ||
}, | ||
middleRow: { | ||
flex: 1, | ||
}, | ||
cardContentRow: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
gap: 15, | ||
}, | ||
image: { | ||
width: 115, | ||
height: 115, | ||
}, | ||
sep: { | ||
backgroundColor: '#666', | ||
width: '100%', | ||
height: 1, | ||
marginTop: 25, | ||
marginBottom: 25, | ||
}, | ||
totalContent: { | ||
height: 60, | ||
backgroundColor: 'grey', | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
padding: 15, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import styles from './cart.modal.module.css'; | ||
|
||
export { styles }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
libs/ui/src/lib-base/ui/element.layout/element.layout.view.native.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters