Skip to content

Commit a4d554a

Browse files
committed
fix: demo working
1 parent a19450c commit a4d554a

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

demo/mobile/reactnative/App.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import React from 'react';
33
import {
44
DefaultTheme,
55
Card,
6-
TextInput,
7-
Portal,
86
Provider as PaperProvider,
97
} from 'react-native-paper';
108
import {
@@ -18,7 +16,7 @@ import {
1816
import ReactNativeForm from '../../../src/cross-framework-wrapper/react/Form';
1917

2018
// Demo
21-
import numbers from '../../examples/numbers';
19+
import examples from '../../examples';
2220

2321
const App = () => {
2422
const isDarkMode = useColorScheme() === 'dark';
@@ -35,8 +33,9 @@ const App = () => {
3533
const backgroundStyle = {
3634
backgroundColor: isDarkMode ? theme.colors.primary : theme.colors.accent,
3735
};
38-
39-
const { schema, uiSchema, formData } = numbers;
36+
37+
// Make this dynamic based on array selection
38+
const { schema, uiSchema, formData } = examples[3].numbers;
4039

4140
const onSubmit = () => {};
4241
const onCancel = () => {};
@@ -68,12 +67,6 @@ const App = () => {
6867
submitOnEnter
6968
activityIndicatorEnabled
7069
/>
71-
{/* <Portal>
72-
<TextInput />
73-
<TextInput />
74-
<TextInput />
75-
<TextInput />
76-
</Portal> */}
7770
</Card.Content>
7871
</Card>
7972
</SafeAreaView>

0 commit comments

Comments
 (0)