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
Reactjs react native中的框阴影按钮_Reactjs_React Native - Fatal编程技术网

Reactjs react native中的框阴影按钮

Reactjs react native中的框阴影按钮,reactjs,react-native,Reactjs,React Native,我需要像react native中的那个按钮…有可能吗 我需要在点击按钮后设置按下动画,如下面的url中所示 您必须为视图提供立面支撑 <View elevation={5} style={styles.container}> <Text>Hello World !</Text> </View> 那有什么问题?试着问得更具体些。你试过什么,为什么不起作用?我试过用elavation和shadow属性创建带有框阴影的按钮。看起来不是这样。你

我需要像react native中的那个按钮…有可能吗

我需要在点击按钮后设置按下动画,如下面的url中所示


您必须为视图提供立面支撑

<View elevation={5} style={styles.container}>
    <Text>Hello World !</Text>
</View>

那有什么问题?试着问得更具体些。你试过什么,为什么不起作用?我试过用elavation和shadow属性创建带有框阴影的按钮。看起来不是这样。你能解释一下如何实现按钮按下的效果吗?
const styles = StyleSheet.create({

 container:{
    padding:20,
    backgroundColor:'#d9d9d9',
    shadowColor: "#000000",
    shadowOpacity: 0.8,
    shadowRadius: 2,
    shadowOffset: {
      height: 1,
      width: 1
    }
   },
 })