From e8074135e787f3a1c9635d69b6c1fd09dd12e71e Mon Sep 17 00:00:00 2001 From: konchanSS Date: Mon, 5 Feb 2018 16:46:32 +0900 Subject: [PATCH 1/2] Handling Touches lesson 1 --- App.js | 64 +++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 52 insertions(+), 12 deletions(-) diff --git a/App.js b/App.js index 224d7db..e3beb18 100644 --- a/App.js +++ b/App.js @@ -1,16 +1,56 @@ import React, { Component } from 'react'; -import { AppRegistry, Text, View } from 'react-native'; +import { Alert, AppRegistry, Button, StyleSheet,View } 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 ButtonBasics extends Component { + _onPressButton() { + Alert.alert('You tapped the button!') + } + + render() { + return ( + + +