Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/

import 'react-native-gesture-handler';
import React, {useState} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {HomeScreen, LoginScreen, RegistrationScreen} from './src/screens';
import {decode, encode} from 'base-64';
import {HomeScreen, LoginScreen, RegistrationScreen} from './src/screens';
import HeaderIcons from './src/components/HeaderIcons';

if (!global.btoa) {
global.btoa = encode;
}
Expand All @@ -28,7 +22,21 @@ export default function App() {
<NavigationContainer>
<Stack.Navigator>
{user ? (
<Stack.Screen name="Home">
<Stack.Screen
name="Home"
options={{
title: 'Splash',
headerStyle: {
backgroundColor: '#092235',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
fontSize: 30,
paddingBottom: 5,
},
headerRight: () => <HeaderIcons />,
}}>
{props => <HomeScreen {...props} extraData={user} />}
</Stack.Screen>
) : (
Expand Down
6 changes: 6 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ PODS:
- Yoga
- RNScreens (3.2.0):
- React-Core
- RNSVG (12.1.1):
- React
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -341,6 +343,7 @@ DEPENDENCIES:
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -412,6 +415,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-reanimated"
RNScreens:
:path: "../node_modules/react-native-screens"
RNSVG:
:path: "../node_modules/react-native-svg"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand Down Expand Up @@ -449,6 +454,7 @@ SPEC CHECKSUMS:
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
RNReanimated: b8c8004b43446e3c2709fe64b2b41072f87428ad
RNScreens: c277bfc4b5bb7c2fe977d19635df6f974f95dfd6
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
Yoga: a7de31c64fe738607e7a3803e3f591a4b1df7393

PODFILE CHECKSUM: f7138050e281b75d40275cf608e35d02053e7263
Expand Down
Loading