Skip to content

Commit

Permalink
fix: fixes for expo 52
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Nov 11, 2024
1 parent d406cd3 commit 0173766
Show file tree
Hide file tree
Showing 31 changed files with 2,961 additions and 80 deletions.
1 change: 1 addition & 0 deletions examples/one-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"expo": "~51.0.28",
"one": "1.1.330",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-native": "0.74.5",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
Expand Down
36 changes: 36 additions & 0 deletions examples/one-expo-52/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.turbo

tmp
dist
node_modules

*.tsbuildinfo
*.tmp.js

yarn-error.log
tsconfig.tsbuildinfo
.DS_Store

.tamagui

.idea

.env
# local env files
.env.local
.env.development.local
.env.test.localp
.env.production.local

.expo

# generated code
/ios
/android
7 changes: 7 additions & 0 deletions examples/one-expo-52/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Welcome to One!

To run your app:

```
npm run one
```
16 changes: 16 additions & 0 deletions examples/one-expo-52/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"expo": {
"name": "one-example",
"slug": "one-example",
"sdkVersion": "52.0.0",
"platforms": ["ios", "android"],
"plugins": ["vxrn/expo-plugin"],
"icon": "./public/app-icon.png",
"splash": {
"image": "./public/splash.png",
"resizeMode": "contain",
"backgroundColor": "#000000"
},
"ios": {}
}
}
18 changes: 18 additions & 0 deletions examples/one-expo-52/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Slot } from 'one'

export default function Layout() {
return (
<>
{typeof document !== 'undefined' && (
<>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
<link rel="icon" href="/favicon.svg" />
</>
)}

<Slot />
</>
)
}
17 changes: 17 additions & 0 deletions examples/one-expo-52/app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Text, View } from 'react-native'

export default function Index() {
return (
<View
style={{
flex: 1,
alignSelf: 'center',
justifyContent: 'center',
alignItems: 'center',
minHeight: '100%',
}}
>
<Text>Hello world, from One</Text>
</View>
)
}
27 changes: 27 additions & 0 deletions examples/one-expo-52/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "example-expo-52",
"version": "1.1.330",
"private": true,
"type": "module",
"scripts": {
"dev": "one dev",
"dev:clean": "one dev --clean",
"clean": "one clean",
"prebuild:native": "one prebuild",
"build:web": "one build",
"serve": "one serve"
},
"dependencies": {
"expo": "~52.0.0-preview.3",
"one": "1.1.330",
"react": "^18.3.1",
"react-native": "0.76.0",
"react-native-safe-area-context": "4.11.0",
"react-native-screens": "4.0.0",
"react-native-web": "^0.19.12"
},
"devDependencies": {
"@types/react": "^18.3.11",
"vite": "6.0.0-beta.1"
}
}
Binary file added examples/one-expo-52/public/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions examples/one-expo-52/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/one-expo-52/public/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0173766

Please sign in to comment.