-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve onboading login screen (#189)
- Loading branch information
1 parent
cd76332
commit 394e476
Showing
5 changed files
with
44 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
import React from 'react'; | ||
import { ActivityIndicator } from 'react-native'; | ||
import LoginOverlayScreen from './components/LoginOverlayScreen'; | ||
import ApplicationRoot from './ApplicationRoot'; | ||
import Storage from './libs/Storage'; | ||
|
||
export default function App() { | ||
const [isLoading, setIsLoading] = React.useState(false); | ||
const [isLoginOverlayStepDone, setIsLoginOverlayStepDone] = React.useState(true); | ||
React.useEffect(() => { | ||
Storage.isLoginOverlayStepDone().then((value) => { | ||
if (value === 'yes') { | ||
setIsLoginOverlayStepDone(false); | ||
} | ||
setIsLoading(true); | ||
}); | ||
}, []); | ||
|
||
const markLoginStepDone = () => { | ||
setIsLoginOverlayStepDone(false); | ||
}; | ||
|
||
return isLoginOverlayStepDone ? ( | ||
<LoginOverlayScreen markLoginStepDone={markLoginStepDone} /> | ||
return isLoading ? ( | ||
isLoginOverlayStepDone ? ( | ||
<LoginOverlayScreen markLoginStepDone={markLoginStepDone} /> | ||
) : ( | ||
<ApplicationRoot /> | ||
) | ||
) : ( | ||
<ApplicationRoot /> | ||
<ActivityIndicator /> | ||
); | ||
} |
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 +1 @@ | ||
Save your colors | ||
Buzzing with inspiration for your color palettes |
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 +1 @@ | ||
Croma - Palette Manager | ||
HueHive(Formerly Croma) |
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