reza fixed activation Keyboardavoidingview

master
Reza_ashrafi 3 years ago
parent da1e5f7fcc
commit f983c60bc9
  1. 16
      src/screens/Activation/index.js

@ -7,6 +7,8 @@ import {
KeyboardAvoidingView, KeyboardAvoidingView,
TouchableWithoutFeedback, TouchableWithoutFeedback,
SafeAreaView, SafeAreaView,
ScrollView,
Dimensions,
} from "react-native"; } from "react-native";
import { connect } from "react-redux"; import { connect } from "react-redux";
import Svg, { Image as Imagee } from "react-native-svg"; import Svg, { Image as Imagee } from "react-native-svg";
@ -25,19 +27,22 @@ import Colors from "../../constants/Colors";
//assets //assets
import bgQr from "./assets/QR.png"; import bgQr from "./assets/QR.png";
//variables
const ios = Platform.OS === "ios"; const ios = Platform.OS === "ios";
const { height } = Dimensions.get("window");
function Activation({ add, mobile, theme }) { function Activation({ add, mobile, theme }) {
const [value, setValue] = useState(null); const [value, setValue] = useState(null);
return ( return (
<SafeAreaView <SafeAreaView
style={{ paddingTop: ios ? 0 : StatusBar.currentHeight, flex: 1 }} style={[
> tw("flex-1"),
<KeyboardAvoidingView { paddingTop: ios ? 0 : StatusBar.currentHeight, flex: 1 },
behavior={Platform.OS === "ios" ? "padding" : "height"} ]}
style={{ flex: 1, backgroundColor: "white" }}
> >
<ScrollView style={tw("flex-1")}>
<KeyboardAvoidingView behavior={"padding"} style={{ height }}>
<TouchableWithoutFeedback> <TouchableWithoutFeedback>
<View <View
style={[ style={[
@ -117,6 +122,7 @@ function Activation({ add, mobile, theme }) {
</View> </View>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
</KeyboardAvoidingView> </KeyboardAvoidingView>
</ScrollView>
</SafeAreaView> </SafeAreaView>
); );
} }

Loading…
Cancel
Save