-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
846fd72
commit da88a51
Showing
12 changed files
with
527 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
{ | ||
"expo": { | ||
"name": "handficial", | ||
"slug": "handficial", | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/adaptive-icon.png", | ||
"backgroundColor": "#FFFFFF" | ||
} | ||
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
"expo": { | ||
"name": "handficial", | ||
"slug": "handficial", | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": ["**/*"], | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/adaptive-icon.png", | ||
"backgroundColor": "#FFFFFF" | ||
} | ||
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ["babel-preset-expo"], | ||
plugins: ["react-native-reanimated/plugin"], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
import { NavigationContainer } from "@react-navigation/native"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import { createDrawerNavigator } from "@react-navigation/drawer"; | ||
import OnboardingScreen from "../screens/OnboardingScreen"; | ||
// | ||
// create Navigation | ||
const Stack = createStackNavigator(); | ||
const Drawer = createDrawerNavigator(); | ||
// | ||
// | ||
const Navigation = () => { | ||
return ( | ||
<NavigationContainer> | ||
<Stack.Navigator screenOptions={{ headerShown: false }}> | ||
<Stack.Screen name="OnboardingScreen"> | ||
{(drawerProps) => ( | ||
<OnboardingScreen | ||
{...drawerProps} | ||
setIsAppFirstLaunched={() => dispatch(onboard())} | ||
/> | ||
)} | ||
</Stack.Screen> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
); | ||
}; | ||
|
||
export default Navigation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import { Image, Center, NativeBaseProvider } from "native-base"; | ||
const logo = require("../assets/logo.png"); | ||
|
||
const LoadingScreen = () => { | ||
return ( | ||
<NativeBaseProvider> | ||
<Center flex={1}> | ||
<Image | ||
source={logo} | ||
ml="2" | ||
alt="LoadingScreen" | ||
style={{ | ||
height: 50, | ||
width: 50, | ||
resizeMode: "contain", | ||
}} | ||
/> | ||
</Center> | ||
</NativeBaseProvider> | ||
); | ||
}; | ||
|
||
export default LoadingScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, { useState } from "react"; | ||
import { Text } from "native-base"; | ||
import { ImageBackground, SafeAreaView } from "react-native"; | ||
|
||
// | ||
// | ||
const OnboardingScreen = () => { | ||
const [bg, setBg] = useState(1); | ||
const logo = | ||
bg === 0 | ||
? require("../assets/splash1.png") | ||
: bg === 1 | ||
? require("../assets/splash2.png") | ||
: require("../assets/splash3.png"); | ||
|
||
return ( | ||
<ImageBackground style={{ flex: "1" }} source={logo} resizeMode="cover"> | ||
<SafeAreaView style={{ flex: "1" }}> | ||
<Text>Inside</Text> | ||
</SafeAreaView> | ||
</ImageBackground> | ||
); | ||
}; | ||
|
||
export default OnboardingScreen; |
Oops, something went wrong.