diff --git a/App.js b/App.js
index 224d7db..871a289 100644
--- a/App.js
+++ b/App.js
@@ -1,16 +1,73 @@
import React, { Component } from 'react';
-import { AppRegistry, Text, View } from 'react-native';
+import { Alert, AppRegistry, Platform, Button, Text, StyleSheet,View, TouchableHighlight, TouchableOpacity, TouchableNativeFeedback, TouchableWithoutFeedback} from 'react-native';
-export default class App extends Component {
- render() {
- return (
-
- Open up App.js to start working on your app!
- Changes you make will automatically reload.
- Shake your phone to open the developer menu.
-
- );
- }
+export default class Touchables extends Component {
+ _onPressButton() {
+ Alert.alert('You tapped the button!')
+ }
+
+ _onLongPressButton() {
+ Alert.alert('Long Touch')
+ }
+
+ render() {
+ return (
+
+
+
+ TouchbleHeighlight
+
+
+
+
+ TouchableOpacity
+
+
+
+
+ TouchableNativeFeedback
+
+
+
+
+ TouchableWithoutFeedback
+
+
+
+
+ Touchable with Long Press
+
+
+
+
+ );
+ }
}
-AppRegistry.registerComponent('react-native-tutorial', () => App);
+const styles = StyleSheet.create({
+ container: {
+ paddingTop: 60,
+ alignItems: 'center'
+ },
+ button: {
+ marginBottom: 30,
+ width: 260,
+ alignItems: 'center',
+ backgroundColor: '#2196F3'
+ },
+ buttonText: {
+ padding: 20,
+ color: 'white'
+ }
+})
+
+AppRegistry.registerComponent('react-native-tutorial', () => Touchables);