react圆角 颜色渐变


        登录



    
        
            竖向渐变
        
    


    
        
            横向渐变
        
    

 

const styles = StyleSheet.create({
    container:{
        flex:1,
        flexDirection: 'column',
        justifyContent: 'center',
        alignItems: 'center',
    },
    rowStyle:{
        width:width*0.8,
        flexDirection:'row',
        justifyContent:'center',
        height:44,
        borderBottomWidth: 0.5,
        // borderBottomColor:this.state.wzTextInput?'green': 'gray',  //报wzTextInput没定义
        marginLeft:10,
        marginRight:10,
    },
    leftViewStyle:{
        flex:1,
        flexDirection:'row',
        justifyContent:'center',
        alignItems: 'center'
    },
    imageStyle:{
        width:20,
        height: 20,
        tintColor:'green',
        marginLeft: 5
    },
    inputStyle:{
        flex:1,
        height:44,
    },
    rightTextStyle:{
        width:50,
        justifyContent:'flex-end',
        alignItems:'center'
    },
    loginTextStyle:{
        fontSize:24,
        color:'white'
    },
    loginButtonViewStyle:{
        width:width*0.8,
        flexDirection:'row',
        justifyContent:'center',
        alignItems:'center',
        height:44,
        marginTop:40,
        marginLeft:10,
        marginRight:10,
        backgroundColor:'green',
        borderRadius:20
    },
    loginButtonViewStyle2:{
        width:width*0.8,
        flexDirection:'row',
        justifyContent:'center',
        alignItems:'center',
        height:44,
        marginTop:40,
        marginLeft:10,
        marginRight:10,
        borderRadius: 5,
    },
    linearGradient: {
        flex: 1,
        paddingLeft: 15,
        paddingRight: 15,
        borderRadius: 5
    },
    buttonText: {
        fontSize: 18,
        fontFamily: 'Gill Sans',
        textAlign: 'center',
        margin: 10,
        color: '#ffffff',
        backgroundColor: 'transparent',
    },
});

你可能感兴趣的:(react-native)