You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
562 B
29 lines
562 B
import React, {Component} from 'react'; |
|
import {StyleSheet, View, Text, TouchableOpacity} from 'react-native'; |
|
|
|
const styles = StyleSheet.create({ |
|
main: { |
|
backgroundColor: '#ffffff', |
|
flex: 1, |
|
alignItems: 'center', |
|
justifyContent: 'center', |
|
}, |
|
}); |
|
|
|
export default class Menu extends Component { |
|
constructor(props) { |
|
super(props); |
|
} |
|
|
|
render() { |
|
const { main, help } = this.props; |
|
|
|
return ( |
|
<View style={styles.main}> |
|
<Text onPress={main}>Calculator</Text> |
|
<Text onPress={help}>Help</Text> |
|
<Text>Link 4</Text> |
|
</View> |
|
); |
|
} |
|
}
|
|
|