Skip to content

Commit 2ba217e

Browse files
committed
fix: build is working fine
1 parent 350d6c5 commit 2ba217e

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

scripts/installer/frameworks/react-native/src/ui-framework/rnpaper.framework.tsx

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,38 @@ export const uiFramework: UIFramework = {
1313
CrossPlatformWrapper: () => (<View />),
1414
CrossPlatformLoadingWrapper: () => (<View />),
1515
FormButtons: () => (<View />),
16+
ValidationMessages: () => (<View />),
17+
},
18+
wrapperComponents: {
19+
InputLabel: () => (<View />),
20+
FormLabel: () => (<View />),
21+
AppBar: () => (<View />),
22+
Tabs: () => (<View />),
23+
Tab: () => (<View />),
24+
Box: () => (<View />),
25+
CircularProgress: () => (<View />),
26+
Typography: () => (<View />),
27+
Divider: () => (<View />),
28+
IconButton: () => (<View />),
29+
AddCircle: () => (<View />),
30+
Stepper: () => (<View />),
31+
Step: () => (<View />),
32+
StepLabel: () => (<View />),
33+
Button: () => (<View />),
34+
ArrowUpward: () => (<View />),
35+
ArrowDownward: () => (<View />),
36+
RemoveCircle: () => (<View />),
37+
FormControl: () => (<View />),
38+
FormGroup: () => (<View />),
39+
FormHelperText: () => (<View />),
40+
ActiveComp: () => (<View />),
41+
Div: () => (<View />),
42+
FieldsetHTML: () => (<View />),
43+
Para: () => (<View />)
1644
},
1745
components: {
1846
string: {
19-
input: TextInput,
47+
Input: TextInput,
2048
},
2149
array: {
2250
select: TextInput,
@@ -28,4 +56,12 @@ export const uiFramework: UIFramework = {
2856
emptyDiv: View,
2957
},
3058
},
31-
};
59+
styles: {
60+
FieldSetStyles: () => {},
61+
FormFieldStyles: () => {},
62+
FormStyles: () => {},
63+
defaultTheme: () => {},
64+
FieldStyles: () => {},
65+
FormStepperStyles: () => {}
66+
}
67+
}

scripts/installer/frameworks/react-native/src/ui-framework/types/rnpaper-framework.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type UIFrameworkPlatforms = 'mobile';
77
interface Components {
88
// Mandatory components for every UIFramework
99
string: {
10-
Input: (props: any) => ReactElement<any, string | JSXElementConstructor<any>>;
10+
Input: Function;
1111

1212
// Optional Components
1313
select?: Function;

src/cross-framework-wrapper/react/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import FormField from './FormField';
1818

1919
const {
2020
React,
21-
nanoId: generate,
21+
// nanoId: generate,
2222
} = Framework.library;
2323

2424
const {
@@ -142,7 +142,7 @@ const Form = ({
142142
});
143143

144144
const classes = formStyles();
145-
const id = prefixId || generate();
145+
const id = prefixId; // || generate();
146146

147147
const hashRef = getHashCodeFromXHRDef({
148148
eventName: 'onload',

src/universal-schema/framework.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { uiFramework } from '@framework/ui-framework';
55
const Framework: UniversalSchemaFramework = {
66
library: {
77
React: require('react'),
8-
nanoId: require('nanoid').nanoid,
8+
// nanoId: require('nanoid').nanoid,
99
},
1010
uiFramework,
1111
interceptors: {

0 commit comments

Comments
 (0)