Wireless Buzzer App
(Part II)
App.js:-
import * as React from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
import SoundButton from './components/SoundButton';
import AppHeader from './components/AppHeader';
export default class App extends React.Component {
render() {
return (
<View>
<AppHeader />
<View style={styles.container}>
<SoundButton />
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
marginTop: 100,
},
});
0 Comments: