Skip to content

Commit

Permalink
⭐️ Update: Add Placeholder for Test09
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 22, 2023
1 parent a6fba6c commit 0444541
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions example/src/examples/Test09.tsx
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 Test09(props: ExampleProps) {
const modalRef = React.useRef<ModalView>(null);

const [counter, setCounter] = React.useState(0);

return (
<ExampleCard
style={props.style}
index={props.index}
title={'Test09'}
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',
},
});
2 changes: 2 additions & 0 deletions example/src/screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { Test05 } from '../examples/Test05';
import { Test06 } from '../examples/Test06';
import { Test07 } from '../examples/Test07';
import { Test08 } from '../examples/Test08';
import { Test09 } from '../examples/Test09';

import { Example01 } from '../examples/Example01';

Expand Down Expand Up @@ -49,6 +50,7 @@ const EXAMPLE_COMPONENTS: Array<ExampleComponentItem> = [
Test06,
Test07,
Test08,
Test09,
Example01,
SHARED_ENV.enableReactNavigation && DebugControls,
];
Expand Down

0 comments on commit 0444541

Please sign in to comment.