|
|
|
@ -9,6 +9,7 @@ import { |
|
|
|
|
} from "react-native"; |
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
import { userFactor } from "../../../redux/actions"; |
|
|
|
|
import onInput from "../../../utils/onInput"; |
|
|
|
|
|
|
|
|
|
//style
|
|
|
|
|
import fontSize from "../../../constants/fontSize"; |
|
|
|
@ -42,13 +43,14 @@ function Code({ codeId, setCodeId, theme, loading }) { |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
<TextInput |
|
|
|
|
onChangeText={(text) => setValue(text)} |
|
|
|
|
onChangeText={(text) => setValue(text = onInput.englishAndNumberWithoutSpace(text))} |
|
|
|
|
style={[ |
|
|
|
|
tw("border-0 flex-1 text-right pr-3"), |
|
|
|
|
{ fontSize: fontSize.tiny, fontFamily: "regular" }, |
|
|
|
|
]} |
|
|
|
|
placeholder={"کد تخفیف دارید ؟"} |
|
|
|
|
placeholderTextColor={Colors.theme1[theme].gray20 + "aa"} |
|
|
|
|
value={value} |
|
|
|
|
/> |
|
|
|
|
<Pressable |
|
|
|
|
onPress={() => setOff()} |
|
|
|
|