mg-library 1.0.432 → 1.0.433

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.
Files changed (2) hide show
  1. package/blocks.js +35 -16
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -32,7 +32,7 @@ export function MGWelcome(props) {
32
32
 
33
33
  let subTitle = mgFunctionsLib.i18nString('notices', props.language);
34
34
 
35
- if(props.subTitle != undefined)
35
+ if (props.subTitle != undefined)
36
36
  subTitle = props.subTitle;
37
37
 
38
38
  let listHeaderComponent = (
@@ -172,20 +172,39 @@ export function MGLogin(props) {
172
172
  />
173
173
  )}
174
174
  name="userName" />
175
- <Controller
176
- control={control}
177
- rules={{ maxLength: 50 }}
178
- render={({ field: { onChange, value } }) => (
179
- <Input
180
- size='large'
181
- placeholder={mgFunctionsLib.i18nString('password', props.language)}
182
- onChangeText={onChange}
183
- secureTextEntry={true}
184
- maxLength={12}
185
- value={value}
186
- />
187
- )}
188
- name="password" />
175
+ {useNumericKeyboardOnPassword &&
176
+ <Controller
177
+ control={control}
178
+ rules={{ maxLength: 50 }}
179
+ render={({ field: { onChange, value } }) => (
180
+ <Input
181
+ size='large'
182
+ placeholder={mgFunctionsLib.i18nString('password', props.language)}
183
+ onChangeText={onChange}
184
+ secureTextEntry={true}
185
+ maxLength={12}
186
+ keyboardType='numeric'
187
+ value={value}
188
+ />
189
+ )}
190
+ name="password" />
191
+ }
192
+ {!useNumericKeyboardOnPassword &&
193
+ <Controller
194
+ control={control}
195
+ rules={{ maxLength: 50 }}
196
+ render={({ field: { onChange, value } }) => (
197
+ <Input
198
+ size='large'
199
+ placeholder={mgFunctionsLib.i18nString('password', props.language)}
200
+ onChangeText={onChange}
201
+ secureTextEntry={true}
202
+ maxLength={12}
203
+ value={value}
204
+ />
205
+ )}
206
+ name="password" />
207
+ }
189
208
  </Card>
190
209
  </View>
191
210
  </View>
@@ -530,7 +549,7 @@ export function MGFlatListHeader(props) {
530
549
  <Text category='h6' style={{ marginLeft: 10 }}>{props.title}</Text>
531
550
  {props.subTitle != undefined &&
532
551
  props.subTitle
533
- }
552
+ }
534
553
  </View>
535
554
  {props.afterTitle != undefined &&
536
555
  props.afterTitle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.432",
3
+ "version": "1.0.433",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {