|
|
@ -187,14 +187,14 @@ function Otp(props) { |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontFamily: "demi", |
|
|
|
fontFamily: "bold", |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
value={firstCode} |
|
|
|
value={firstCode} |
|
|
|
maxLength={2} |
|
|
|
maxLength={1} |
|
|
|
ref={(ref) => (ref1 = ref)} |
|
|
|
ref={(ref) => (ref1 = ref)} |
|
|
|
onChangeText={(text) => onChangeCode(text, "1")} |
|
|
|
onChangeText={(text) => onChangeCode(text, "1")} |
|
|
|
regex={onInput.numberOnly} |
|
|
|
regex={onInput.numberOnly} |
|
|
@ -206,14 +206,14 @@ function Otp(props) { |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontFamily: "demi", |
|
|
|
fontFamily: "bold", |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
value={secondCode} |
|
|
|
value={secondCode} |
|
|
|
maxLength={2} |
|
|
|
maxLength={1} |
|
|
|
ref={(ref) => (ref2 = ref)} |
|
|
|
ref={(ref) => (ref2 = ref)} |
|
|
|
onChangeText={(text) => onChangeCode(text, "2")} |
|
|
|
onChangeText={(text) => onChangeCode(text, "2")} |
|
|
|
regex={onInput.numberOnly} |
|
|
|
regex={onInput.numberOnly} |
|
|
@ -232,7 +232,7 @@ function Otp(props) { |
|
|
|
]} |
|
|
|
]} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
value={thirdCode} |
|
|
|
value={thirdCode} |
|
|
|
maxLength={2} |
|
|
|
maxLength={1} |
|
|
|
ref={(ref) => (ref3 = ref)} |
|
|
|
ref={(ref) => (ref3 = ref)} |
|
|
|
onChangeText={(text) => onChangeCode(text, "3")} |
|
|
|
onChangeText={(text) => onChangeCode(text, "3")} |
|
|
|
regex={onInput.numberOnly} |
|
|
|
regex={onInput.numberOnly} |
|
|
@ -244,14 +244,14 @@ function Otp(props) { |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
tw("bg-gray-100 py-3 px-5 text-center rounded-md mx-1.5"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontSize: fontSize.xl5, |
|
|
|
fontFamily: "demi", |
|
|
|
fontFamily: "bold", |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
value={fourthCode} |
|
|
|
value={fourthCode} |
|
|
|
maxLength={2} |
|
|
|
maxLength={1} |
|
|
|
ref={(ref) => (ref4 = ref)} |
|
|
|
ref={(ref) => (ref4 = ref)} |
|
|
|
onChangeText={(text) => onChangeCode(text, "4")} |
|
|
|
onChangeText={(text) => onChangeCode(text, "4")} |
|
|
|
regex={onInput.numberOnly} |
|
|
|
regex={onInput.numberOnly} |
|
|
|