File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import React from 'react';
3
3
import {
4
4
DefaultTheme ,
5
5
Card ,
6
- TextInput ,
7
- Portal ,
8
6
Provider as PaperProvider ,
9
7
} from 'react-native-paper' ;
10
8
import {
@@ -18,7 +16,7 @@ import {
18
16
import ReactNativeForm from '../../../src/cross-framework-wrapper/react/Form' ;
19
17
20
18
// Demo
21
- import numbers from '../../examples/numbers ' ;
19
+ import examples from '../../examples' ;
22
20
23
21
const App = ( ) => {
24
22
const isDarkMode = useColorScheme ( ) === 'dark' ;
@@ -35,8 +33,9 @@ const App = () => {
35
33
const backgroundStyle = {
36
34
backgroundColor : isDarkMode ? theme . colors . primary : theme . colors . accent ,
37
35
} ;
38
-
39
- const { schema, uiSchema, formData } = numbers ;
36
+
37
+ // Make this dynamic based on array selection
38
+ const { schema, uiSchema, formData } = examples [ 3 ] . numbers ;
40
39
41
40
const onSubmit = ( ) => { } ;
42
41
const onCancel = ( ) => { } ;
@@ -68,12 +67,6 @@ const App = () => {
68
67
submitOnEnter
69
68
activityIndicatorEnabled
70
69
/>
71
- { /* <Portal>
72
- <TextInput />
73
- <TextInput />
74
- <TextInput />
75
- <TextInput />
76
- </Portal> */ }
77
70
</ Card . Content >
78
71
</ Card >
79
72
</ SafeAreaView >
You can’t perform that action at this time.
0 commit comments