You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReact,{Component}from'react';import{View,Text,Animated,Easing,StyleSheet}from'react-native';import{Actions}from'react-native-router-flux';exportdefaultclassPageOneextendsComponent{constructor(props){super(props);this.state={fadeInOpacity: newAnimated.Value(0)}}componentDidMount(){Animated.timing(this.state.fadeInOpacity,{toValue:1,duration:2500,easing:Easing.linear}).start();}render(){return(<Viewstyle={{margin:128}}><Text>this is pagethree</Text><TextonPress={()=>Actions.pop()}>back</Text><Animated.Viewstyle={[styles.demo,{opacity:this.state.fadeInOpacity}]}><Textstyle={styles.text}>fade in....</Text></Animated.View></View>)}}varstyles=StyleSheet.create({demo:{flex:1,alignItems:'center',justifyContent:'center',backgroundColor:'white'},text:{fontSize:30}})
把 styles改成 就可以了 :
多个样式就是写成数组形式吧 求教
The text was updated successfully, but these errors were encountered: