Skip to content

Commit

Permalink
Merge pull request #1 from AlexandreBellas/feature/slide-v2
Browse files Browse the repository at this point in the history
feat: create a not-well-done slide effect
  • Loading branch information
AlexandreBellas authored May 20, 2024
2 parents 5d12933 + 510eb39 commit d1560a3
Show file tree
Hide file tree
Showing 24 changed files with 340 additions and 158 deletions.
18 changes: 18 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,28 @@ import MultiplayerProvider from '@contexts/MultiplayerContext'
import { config } from '@gluestack-ui/config'
import { GluestackUIProvider } from '@gluestack-ui/themed'
import WebLayout from '@layouts/WebLayout'
import { VersionDatabaseService } from '@services/database/version.database'
import { useEffect, useState } from 'react'
import { Platform } from 'react-native'
import 'react-native-gesture-handler'

export default function App() {
// #region States
const [isValidatingVersion, setIsValidatingVersion] = useState(true)
// #endregion

// #region Effects
useEffect(() => {
const versionPromise = VersionDatabaseService.validate()

Promise.allSettled([versionPromise]).then(() => {
setIsValidatingVersion(false)
})
}, [])
// #endregion

if (isValidatingVersion) return <></>

return (
<GluestackUIProvider config={config}>
{Platform.OS === 'web' ? <WebLayout /> : <></>}
Expand Down
Binary file modified assets/dogs/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/64.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dogs/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "2040dog",
"version": "1.0.0",
"version": "2.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"export:web": "expo export --platform web",
Expand All @@ -20,7 +20,9 @@
"@gluestack-ui/themed": "^1.1.22",
"@react-native-async-storage/async-storage": "1.21.0",
"expo": "~50.0.14",
"expo-clipboard": "~5.0.1",
"expo-status-bar": "~1.11.1",
"lodash": "^4.17.21",
"lucide-react-native": "^0.377.0",
"peerjs": "^1.5.2",
"react": "18.2.0",
Expand All @@ -31,11 +33,11 @@
"react-native-reanimated": "~3.6.2",
"react-native-svg": "^14.1.0",
"react-native-web": "~0.19.6",
"uuid": "^9.0.1",
"expo-clipboard": "~5.0.1"
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/lodash": "^4.17.4",
"@types/react": "~18.2.45",
"@types/uuid": "^9.0.8",
"eslint": "^8.57.0",
Expand Down
Loading

0 comments on commit d1560a3

Please sign in to comment.