Skip to content

Commit

Permalink
3 screen create and navigation setup
Browse files Browse the repository at this point in the history
  • Loading branch information
devomor committed Jun 15, 2024
1 parent 7286829 commit bdd1b08
Show file tree
Hide file tree
Showing 9 changed files with 555 additions and 28 deletions.
24 changes: 6 additions & 18 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
import React, { Component } from 'react';
import { StyleSheet, View,Alert } from 'react-native';
import Indicator from './components/ActivityinCator';
import ButtonComponent from './components/ButtonComponet';
import Card from './components/Container';
import { StyleSheet, SafeAreaView,Alert } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
export default class App extends Component {
render() {
const onPressLearnMore = () => {
Alert.alert('Button pressed!', 'You pressed the Learn More button.');
};
return (
<View style={[styles.container, styles.horizontal]}>
<Card />
<Indicator />
<ButtonComponent
onPressLearnMore={onPressLearnMore}
title="Learn More"
color="#841584"
accessibilityLabel="Learn more about this purple button"
/>

</View>
<SafeAreaView style={[styles.container, styles.horizontal]}>

</SafeAreaView>
);
}
}
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @format
*/

import { AppRegistry } from 'react-native';
import App from './App.js';
import { name as appName } from './app.json';
Expand Down
Empty file added navigations/AppNavigation.js
Empty file.
Loading

0 comments on commit bdd1b08

Please sign in to comment.