diff --git a/src/App.tsx b/src/App.tsx
index 08d25c9..697353c 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -9,110 +9,29 @@
*/
import React from 'react';
-import {
- SafeAreaView,
- StyleSheet,
- ScrollView,
- View,
- Text,
- StatusBar,
-} from 'react-native';
-
-import {
- Header,
- LearnMoreLinks,
- Colors,
- DebugInstructions,
- ReloadInstructions,
-} from 'react-native/Libraries/NewAppScreen';
+import {SafeAreaView, StatusBar} from 'react-native';
+import Deck from './components/Deck';
+import DeckButton from './components/DeckButton';
declare const global: {HermesInternal: null | {}};
const App = () => {
return (
<>
-
+
-
-
- {global.HermesInternal == null ? null : (
-
- Engine: Hermes
-
- )}
-
-
- Step One
-
- Edit App.tsx to change this
- screen and then come back to see your edits.
-
-
-
- See Your Changes
-
-
-
-
-
- Debug
-
-
-
-
-
- Learn More
-
- Read the docs to discover what to do next:
-
-
-
-
-
+
+
+
+
+
+
+
+
+
>
);
};
-const styles = StyleSheet.create({
- scrollView: {
- backgroundColor: Colors.lighter,
- },
- engine: {
- position: 'absolute',
- right: 0,
- },
- body: {
- backgroundColor: Colors.white,
- },
- sectionContainer: {
- marginTop: 32,
- paddingHorizontal: 24,
- },
- sectionTitle: {
- fontSize: 24,
- fontWeight: '600',
- color: Colors.black,
- },
- sectionDescription: {
- marginTop: 8,
- fontSize: 18,
- fontWeight: '400',
- color: Colors.dark,
- },
- highlight: {
- fontWeight: '700',
- },
- footer: {
- color: Colors.dark,
- fontSize: 12,
- fontWeight: '600',
- padding: 4,
- paddingRight: 12,
- textAlign: 'right',
- },
-});
-
export default App;
diff --git a/src/components/Deck.tsx b/src/components/Deck.tsx
new file mode 100644
index 0000000..47e4acf
--- /dev/null
+++ b/src/components/Deck.tsx
@@ -0,0 +1,18 @@
+import React, {PropsWithChildren} from 'react';
+import {StyleSheet, View} from 'react-native';
+
+export default function Deck(props: PropsWithChildren<{}>) {
+ return (
+ <>
+ {props.children}
+ >
+ );
+}
+
+const style = StyleSheet.create({
+ view: {
+ flex: 1,
+ flexDirection: 'row',
+ flexWrap: 'wrap',
+ },
+});
diff --git a/src/components/DeckButton.tsx b/src/components/DeckButton.tsx
new file mode 100644
index 0000000..f16cf53
--- /dev/null
+++ b/src/components/DeckButton.tsx
@@ -0,0 +1,28 @@
+import React from 'react';
+import {StyleSheet, Text, View} from 'react-native';
+
+interface Props {
+ text: string;
+}
+
+export default function DeckButton(props: Props) {
+ return (
+ <>
+
+ {props.text}
+
+ >
+ );
+}
+
+const style = StyleSheet.create({
+ view: {
+ backgroundColor: '#ff4000',
+ flexBasis: '25%',
+ height: 80,
+ },
+ text: {
+ backgroundColor: '#ffbf00',
+ textAlign: 'center',
+ },
+});