This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//areaCompute | |
https://repl.it/G9Do/384 | |
// celsFahrConverter | |
https://repl.it/G9EI/455 | |
//divisible | |
https://repl.it/KSq3/0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class App extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
currentPage: "start" | |
}; | |
this.handlePage = this.handlePage.bind(this); | |
} | |
handlePage(page) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StartPage extends Component { | |
render() { | |
return ( | |
<TouchableHighlight onPress={() => this.props.handlePage("main")}> | |
<Text style={styles.text}>Go to the MainPage</Text> | |
</TouchableHighlight> | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: "black", | |
justifyContent: "center", | |
alignItems: "center" | |
}, | |
text: { | |
color: "white", | |
fontSize: 25, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FadeIn extends Component { | |
state = { | |
fadeAnim: new Animated.Value(0) | |
}; | |
componentDidMount() { | |
Animated.timing(this.state.fadeAnim, { | |
toValue: 1, | |
duration: 2500 | |
}).start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StartPage extends Component { | |
render() { | |
return ( | |
<FadeIn> | |
<TouchableHighlight onPress={() => this.props.handlePage("main")}> | |
<Text style={styles.text}>Go to the MainPage</Text> | |
</TouchableHighlight> | |
</FadeIn> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pumpkin extends Component { | |
constructor() { | |
super(); | |
this.spinValue = new Animated.Value(0); | |
} | |
componentDidMount() { | |
this.spin(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pumpkin extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
isPressed: true | |
}; | |
this.springValue = new Animated.Value(0.3); | |
this.spinValue = new Animated.Value(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class App extends Component { | |
state = { | |
currentScreen: "intro" | |
}; | |
router(page) { | |
this.setState({ currentScreen: page }); | |
} | |
renderScreen() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Intro extends Component { | |
state = { | |
springVal: new Animated.Value(0.8), | |
}; | |
componentDidMount() { | |
setTimeout(() => this.spring(), 2000); | |
} | |
spring() { |
OlderNewer