Skip to content

Commit ca5e59b

Browse files
chore: Upgrade to Expo SDK 55 (#40)
* chore: upgrade to Expo 55 * docs: update minimum Expo SDK to 55 * chore: install expo ui and update packages To make the app run on Expo 55, there were a few more packages that needed updating. Also, I've added Expo UI to use for our components. * chore: use `ExpoUIView` when registering native views * chore: inherit `UIBaseViewProps` for view props * chore: stop using `WithHostingView` Expo's recommendations now are to use the `<Host />` component in JS land instead. * chore: stop using `AutoSizingStack` Expo's guidance is to set `matchContents` on the `<Host />` component in JS. * chore: add dependency on `ExpoUI` in podspec * chore: wrap components in `<Host />` * chore: add fixed size modifier This is to prevent the button from collapsing when in it's being centrally aligned in a flex box layout. * test: add mocks to make tests pass * chore: fix ordering of styles * chore: default Bible version to 3034 * chore: remove unused imports * chore: require expo ui to be SDK 55 or higher
1 parent fb65a55 commit ca5e59b

26 files changed

Lines changed: 8229 additions & 8994 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This project uses the underlying YouVersion SDKs for [Swift](https://github.com/
2727
Because support for Jetpack Compose and SwiftUI is a recent development in the React Native ecosystem, this SDK requires recent versions of iOS, Expo, and React Native to work.
2828

2929
> The minimum supported version of iOS is 17.
30-
> The minimum supported version of Expo is SDK 54.
30+
> The minimum supported version of Expo is SDK 55.
3131
3232
**Using bare React Native?**
3333
Follow these instructions to [set up Expo modules in a bare React Native project](https://docs.expo.dev/bare/installing-expo-modules/) before installing this package.

android/src/main/java/com/youversion/reactnativesdk/views/YVPVotdView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import expo.modules.kotlin.views.ComposeProps
1717
import expo.modules.kotlin.views.ExpoComposeView
1818

1919
data class VotdViewProps(
20-
val bibleVersionId: MutableState<Int?> = mutableStateOf(111),
20+
val bibleVersionId: MutableState<Int?> = mutableStateOf(3034),
2121
val colorScheme: MutableState<String?> = mutableStateOf(null),
2222
) : ComposeProps
2323

example/app.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
88
"userInterfaceStyle": "light",
9-
"newArchEnabled": true,
109
"splash": {
1110
"image": "./assets/splash-icon.png",
1211
"resizeMode": "contain",
@@ -21,7 +20,6 @@
2120
"foregroundImage": "./assets/adaptive-icon.png",
2221
"backgroundColor": "#ffffff"
2322
},
24-
"edgeToEdgeEnabled": true,
2523
"predictiveBackGestureEnabled": false,
2624
"package": "com.youversion.reactnativesdk.example"
2725
},

example/package-lock.json

Lines changed: 1655 additions & 3408 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
"web": "expo start --web"
1111
},
1212
"dependencies": {
13-
"@react-navigation/bottom-tabs": "^7.8.4",
14-
"@react-navigation/native": "^7.1.19",
15-
"expo": "~54.0.10",
16-
"expo-build-properties": "~1.0.9",
17-
"react": "19.1.0",
18-
"react-native": "0.81.4",
13+
"@expo/ui": "~55.0.2",
14+
"@react-navigation/bottom-tabs": "^7.15.3",
15+
"@react-navigation/native": "^7.1.27",
16+
"expo": "^55.0.0",
17+
"expo-build-properties": "~55.0.9",
18+
"react": "19.2.0",
19+
"react-native": "0.83.2",
1920
"react-native-safe-area-context": "~5.6.0",
20-
"react-native-screens": "^4.18.0"
21+
"react-native-screens": "~4.23.0"
2122
},
2223
"devDependencies": {
23-
"@types/react": "~19.1.0",
24+
"@types/react": "~19.2.10",
2425
"typescript": "~5.9.2"
2526
},
2627
"private": true,

ios/RNBibleReaderViewModule.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ExpoModulesCore
2+
import ExpoUI
23

34
public class RNBibleReaderViewModule: Module {
45
public func definition() -> ModuleDefinition {
56
Name("BibleReaderView")
67

7-
View(YVPBibleReaderView.self)
8+
ExpoUIView(YVPBibleReaderView.self)
89
}
910
}

ios/RNBibleTextViewModule.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ExpoModulesCore
2+
import ExpoUI
23

34
public class RNBibleTextViewModule: Module {
45
public func definition() -> ModuleDefinition {
56
Name("BibleTextView")
67

7-
View(YVPBibleTextView.self)
8+
ExpoUIView(YVPBibleTextView.self)
89
}
910
}

ios/RNBibleWidgetViewModule.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ExpoModulesCore
2+
import ExpoUI
23

34
public class RNBibleWidgetViewModule: Module {
45
public func definition() -> ModuleDefinition {
56
Name("BibleWidgetView")
67

7-
View(YVPBibleWidgetView.self)
8+
ExpoUIView(YVPBibleWidgetView.self)
89
}
910
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ExpoModulesCore
2+
import ExpoUI
23

34
public class RNSignInWithYouVersionButtonModule: Module {
45
public func definition() -> ModuleDefinition {
56
Name("SignInWithYouVersionButton")
67

7-
View(YVPSignInWithYouVersionButton.self)
8+
ExpoUIView(YVPSignInWithYouVersionButton.self)
89
}
910
}

ios/RNVotdViewModule.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ExpoModulesCore
2+
import ExpoUI
23

34
public class RNVotdViewModule: Module {
45
public func definition() -> ModuleDefinition {
56
Name("VotdView")
67

7-
View(YVPVotdView.self)
8+
ExpoUIView(YVPVotdView.self)
89
}
910
}

0 commit comments

Comments
 (0)