Skip to content

Commit

Permalink
1️⃣ Chapter 1.2: Add providers to native
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Oct 7, 2022
1 parent d94d50c commit 0666a83
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
11 changes: 10 additions & 1 deletion apps/expo/app/(root).tsx
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
export { Stack as default } from 'expo-router'
import { NativeStack as Stack } from 'expo-router'
import { Provider } from 'app/provider'

export default function Root() {
return (
<Provider>
<Stack />
</Provider>
)
}
3 changes: 1 addition & 2 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"app": "*",
"expo": "46.0.13",
"expo-router": "^0.0.25",
"expo-splash-screen": "~0.16.1",
"expo-status-bar": "~1.4.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.5",
"react-native": "0.69.6",
"react-native-gesture-handler": "~2.5.0",
"react-native-reanimated": "2.9.1",
"react-native-safe-area-context": "4.3.1",
Expand Down
1 change: 0 additions & 1 deletion packages/app/features/home/screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function HomeScreen() {
sx={{
py: '$2',
px: '$3',
borderRadius: '$rounded',
bg: '$purple3',
}}
>
Expand Down
2 changes: 2 additions & 0 deletions packages/app/provider/dripsy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ const theme = makeTheme({
// https://www.dripsy.xyz/usage/theming/create
colors: {
$background: '#161618',
$background2: 'rgb(28, 28, 31)',

$purple3: '#32275F',
$text: '#ffffff',
},
text: {
body: {
color: '$text',
fontSize: 14,
},
p: {
fontSize: 16,
Expand Down
26 changes: 9 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5367,14 +5367,6 @@ expo-splash-screen@^0.16.2:
"@expo/configure-splash-screen" "^0.6.0"
"@expo/prebuild-config" "~5.0.0"

expo-splash-screen@~0.16.1:
version "0.16.1"
resolved "https://registry.yarnpkg.com/expo-splash-screen/-/expo-splash-screen-0.16.1.tgz#d1e34a37d1e050831eea4988fbf7e75c166b4dc3"
integrity sha512-R3EUV5OM4RO+tb5XHgx9TNjaKCpHULo2CrIPbfZGnIdef3MeQucg4dNGw+Kiub9oKGPeExQfwtWqW+VXZqa0vg==
dependencies:
"@expo/configure-splash-screen" "^0.6.0"
"@expo/prebuild-config" "~5.0.0"

expo-status-bar@^1.4.0, expo-status-bar@~1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/expo-status-bar/-/expo-status-bar-1.4.0.tgz#c0317de2c53878340f4b4f00ff7e4ba14399a7fb"
Expand Down Expand Up @@ -9558,10 +9550,10 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

promise@^8.0.3:
version "8.1.0"
resolved "https://registry.yarnpkg.com/promise/-/promise-8.1.0.tgz#697c25c3dfe7435dd79fcd58c38a135888eaf05e"
integrity sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==
promise@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/promise/-/promise-8.2.0.tgz#a1f6280ab67457fbfc8aad2b198c9497e9e5c806"
integrity sha512-+CMAlLHqwRYwBMXKCP+o8ns7DN+xHDUiI+0nArsiJ9y+kJVPLFxEaSw6Ha9s9H0tftxg2Yzl25wqj9G7m5wLZg==
dependencies:
asap "~2.0.6"

Expand Down Expand Up @@ -9915,10 +9907,10 @@ react-native-web@~0.18.7:
postcss-value-parser "^4.2.0"
styleq "^0.1.2"

[email protected].5:
version "0.69.5"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.69.5.tgz#959142bfef21beed837160b54aa17313f5e1898f"
integrity sha512-4Psrj1nDMLQjBXVH8n3UikzOHQc8+sa6NbxZQR0XKtpx8uC3HiJBgX+/FIum/RWxfi5J/Dt/+A2gLGmq2Hps8g==
[email protected].6:
version "0.69.6"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.69.6.tgz#cdd1a5757d902b91b165c28fdda4e518ed6f683a"
integrity sha512-wwXpqM+12kdEYdBZCJUb5SBu95CzgejrwFeYJ78RzHZV/Sj6DBRekbsHGrDDsY4R25QXALQxy4DQYQCObVvWjA==
dependencies:
"@jest/create-cache-key-function" "^27.0.1"
"@react-native-community/cli" "^8.0.4"
Expand All @@ -9941,7 +9933,7 @@ [email protected]:
mkdirp "^0.5.1"
nullthrows "^1.1.1"
pretty-format "^26.5.2"
promise "^8.0.3"
promise "^8.2.0"
react-devtools-core "4.24.0"
react-native-codegen "^0.69.2"
react-native-gradle-plugin "^0.0.7"
Expand Down

0 comments on commit 0666a83

Please sign in to comment.