-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐️ Impl: Ex - Add
Test03
Placeholder
TODO:2023-03-04-03-59-43 - Re-Write Examples in Typescript
- Loading branch information
1 parent
e5f432e
commit ad52ef6
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
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,62 @@ | ||
import * as React from 'react'; | ||
import { StyleSheet } from 'react-native'; | ||
|
||
import type { ExampleProps } from './SharedExampleTypes'; | ||
|
||
import { ExampleCard } from '../components/ExampleCard'; | ||
|
||
import { CardBody, CardButton, CardTitle } from '../components/Card'; | ||
|
||
import { ModalView } from 'react-native-ios-modal'; | ||
|
||
export function Test03(props: ExampleProps) { | ||
const modalRef = React.useRef<ModalView>(null); | ||
|
||
const [counter, setCounter] = React.useState(0); | ||
|
||
return ( | ||
<ExampleCard | ||
style={props.style} | ||
index={props.index} | ||
title={'Test03'} | ||
subtitle={'test - TBA'} | ||
description={['desc - TBA']} | ||
> | ||
<ModalView | ||
// TBA | ||
ref={modalRef} | ||
containerStyle={styles.modalContainer} | ||
> | ||
<React.Fragment> | ||
<CardBody style={styles.modalCard}> | ||
<CardTitle title={'Title - TBA'} /> | ||
</CardBody> | ||
<CardButton | ||
title={'🌼 TBA'} | ||
onPress={() => { | ||
// TBA | ||
}} | ||
/> | ||
</React.Fragment> | ||
</ModalView> | ||
<CardButton | ||
title={'Show Modal'} | ||
onPress={() => { | ||
modalRef.current.setVisibility(true); | ||
}} | ||
/> | ||
</ExampleCard> | ||
); | ||
} | ||
|
||
export const styles = StyleSheet.create({ | ||
modalContainer: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
modalCard: { | ||
alignSelf: 'stretch', | ||
backgroundColor: 'white', | ||
}, | ||
}); |
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