@moamc/rn-cli 1.4.3 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moamc/rn-cli",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "Enterprise-grade Code Generation CLI for React Native Applications",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -56,12 +56,8 @@ ${formFields.map(f => `\t\t${f.name}: '',`).join('\n')}
56
56
  \tconst handleChange = useCallback((value, field) => {
57
57
  \t\tsetFormData(prev => ({ ...prev, [field]: value }));
58
58
  \t\tsetTouched(prev => ({ ...prev, [field]: true }));
59
- \t\t
60
- \t\t// Clear error for this field on change
61
- \t\tif (errors[field]) {
62
- \t\t\tsetErrors(prev => ({ ...prev, [field]: undefined }));
63
- \t\t}
64
- \t}, [errors]);
59
+ \t\tsetErrors(prev => ({ ...prev, [field]: undefined }));
60
+ \t}, []);
65
61
 
66
62
  \tconst handleSubmit = useCallback(async () => {
67
63
  \t\tconst validationErrors = validate${hookName}(formData);
@@ -118,7 +118,7 @@ const ${componentName} = ({ navigation }) => {
118
118
  \t\t\t\t<Header redirect={() => navigation.goBack()} />
119
119
  \t\t\t\t<ScrollView
120
120
  \t\t\t\t\tshowsVerticalScrollIndicator={false}
121
- \t\t\t\t\tcontentContainerStyle={[utilities.rowPadding24]}
121
+ \t\t\t\t\tcontentContainerStyle={styles.scrollContent}
122
122
  \t\t\t\t>
123
123
  \t\t\t\t\t<Text style={styles.heading}>${screenName}</Text>
124
124
  ${generateFormFields(formFields)}
@@ -132,6 +132,9 @@ ${generateFormFields(formFields)}
132
132
  };
133
133
 
134
134
  const styles = StyleSheet.create({
135
+ \tscrollContent: {
136
+ \t\t...utilities.rowPadding24,
137
+ \t},
135
138
  \theading: {
136
139
  \t\t...fonts.fontWSSB18,
137
140
  \t\tcolor: colorConstant.moBlack,
@@ -247,7 +250,7 @@ const ${componentName} = ({ navigation }) => {
247
250
  \t\t\t\t<Header redirect={() => navigation.goBack()} />
248
251
  \t\t\t\t<ScrollView
249
252
  \t\t\t\t\tshowsVerticalScrollIndicator={false}
250
- \t\t\t\t\tcontentContainerStyle={[utilities.rowPadding24]}
253
+ \t\t\t\t\tcontentContainerStyle={styles.scrollContent}
251
254
  \t\t\t\t>
252
255
  \t\t\t\t\t<Text style={styles.heading}>${screenName}</Text>
253
256
  \t\t\t\t\t{/* Add your content here */}
@@ -261,6 +264,9 @@ const ${componentName} = ({ navigation }) => {
261
264
  };
262
265
 
263
266
  const styles = StyleSheet.create({
267
+ \tscrollContent: {
268
+ \t\t...utilities.rowPadding24,
269
+ \t},
264
270
  \theading: {
265
271
  \t\t...fonts.fontWSSB18,
266
272
  \t\tcolor: colorConstant.moBlack,