Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 如何在React Native中创建背景模糊的TextInput_React Native_Styles_Expo_Textinput - Fatal编程技术网

React native 如何在React Native中创建背景模糊的TextInput

React native 如何在React Native中创建背景模糊的TextInput,react-native,styles,expo,textinput,React Native,Styles,Expo,Textinput,我在React Native中设置TextInput块的样式时遇到问题 我的目标是输入相同的模糊效果背景+模糊 现在我的代码是: <View style={styles.controll}> <View style={styles.inputWrapper}> <BlurView intensity={10}> <TextInput style={styles.emailInput} /> </BlurVie

我在React Native中设置TextInput块的样式时遇到问题

我的目标是输入相同的模糊效果背景+模糊

现在我的代码是:

<View style={styles.controll}>
 <View style={styles.inputWrapper}>
    <BlurView intensity={10}>
       <TextInput style={styles.emailInput} />
    </BlurView>
 </View>
 <View style={styles.inputWrapper}>
    <BlurView intensity={10}>
        <TextInput style={styles.passInput} />
    </BlurView>
 </View>
</View>
我的风格是:

const styles = StyleSheet.create({
  inputWrapper: {
    width: "100%",
    height: 75,
    backgroundColor: "rgba(20, 15, 38, 0.648579)",
    filter: "blur(44.119)",
    borderRadius: 20,
    position: "relative",
    overflow: "hidden",
    marginBottom: 25
  },

  emailInput: {
    height: "100%",
    backgroundColor: "transparent"
  },
  controll: {
    flex: 2,
    width: "100%",
    flexDirection: "column",
    justifyContent: "flex-end",
    alignItems: "center"
    // backgroundColor: "red"
  },

});
为了达到预期效果,应该添加哪些样式或库?谢谢

const styles = StyleSheet.create({
  inputWrapper: {
    width: "100%",
    height: 75,
    backgroundColor: "rgba(20, 15, 38, 0.648579)",
    filter: "blur(44.119)",
    borderRadius: 20,
    position: "relative",
    overflow: "hidden",
    marginBottom: 25
  },

  emailInput: {
    height: "100%",
    backgroundColor: "transparent"
  },
  controll: {
    flex: 2,
    width: "100%",
    flexDirection: "column",
    justifyContent: "flex-end",
    alignItems: "center"
    // backgroundColor: "red"
  },

});