Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-harness-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: ./gradlew :app:assembleDebug --no-daemon --build-cache -PreactNativeArchitectures=${{ env.TARGET_ANDROID_ARCH }}

- name: Run Android integration tests
uses: callstackincubator/react-native-harness@v1.5.0
uses: callstackincubator/react-native-harness@v1.6.0
with:
app: android/app/build/outputs/apk/debug/app-debug.apk
runner: android
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-harness-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
run: xcrun simctl bootstatus "$IOS_SIMULATOR_UDID" -b

- name: Run iOS integration tests
uses: callstackincubator/react-native-harness@v1.5.0
uses: callstackincubator/react-native-harness@v1.6.0
env:
HARNESS_DEBUG: "1"
with:
Expand Down
272 changes: 110 additions & 162 deletions bun.lock

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions docs/bun.lock

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

8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"fumadocs-ui": "16.9.2",
"lucide-react": "1.17.0",
"next": "16.2.6",
"react": "19.2.3",
"react-dom": "19.2.3"
"react": "19.3.1",
"react-dom": "19.3.1"
},
"devDependencies": {
"@tailwindcss/postcss": "4.3.0",
"@types/node": "25.9.1",
"@types/react": "19.2.15",
"@types/react-dom": "19.2.3",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"postcss": "8.5.15",
"tailwindcss": "4.3.0",
"typescript": "6.0.3",
Expand Down
16 changes: 15 additions & 1 deletion example/ios/NitroSQLiteExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = NitroSQLiteExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
A7EB6D0F2DCB00010003AF01 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SceneDelegate.swift; path = NitroSQLiteExample/SceneDelegate.swift; sourceTree = "<group>"; };
C3E89C92C507841F368080BD /* Pods_NitroSQLiteExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NitroSQLiteExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
D463F2F53B094E469119C69F /* load-file-with-error.sql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "load-file-with-error.sql"; path = "NitroSQLiteExample/load-file-with-error.sql"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -395,6 +395,13 @@
"${PODS_ROOT}/React-featureflags",
"${PODS_ROOT}/React-renderercss",
"${PODS_ROOT}/React-bridging",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/cxx",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/textlayoutmanager/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/text/platform/cxx",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/textinput/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/switch/iosswitch",
"${PODS_ROOT}/React-cxxstableapi",
);
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -501,6 +508,13 @@
"${PODS_ROOT}/React-featureflags",
"${PODS_ROOT}/React-renderercss",
"${PODS_ROOT}/React-bridging",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/cxx",
"${PODS_ROOT}/React-Fabric/react/renderer/components/scrollview/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/textlayoutmanager/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/text/platform/cxx",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/textinput/platform/ios",
"${PODS_ROOT}/React-FabricComponents/react/renderer/components/switch/iosswitch",
"${PODS_ROOT}/React-cxxstableapi",
);
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
33 changes: 1 addition & 32 deletions example/ios/NitroSQLiteExample/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?
private(set) var launchOptions: [UIApplication.LaunchOptionsKey: Any]?

final class AppDelegate: UIResponder, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
Expand All @@ -22,28 +13,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
UserDefaults.standard.set(loadFileFixturePath, forKey: "loadFileFixturePath")
}

let delegate = ReactNativeDelegate()
let factory = RCTReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()

reactNativeDelegate = delegate
reactNativeFactory = factory
self.launchOptions = launchOptions

return true
}
}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
41 changes: 33 additions & 8 deletions example/ios/NitroSQLiteExample/SceneDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,29 +1,54 @@
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

class SceneDelegate: UIResponder, UIWindowSceneDelegate {
final class SceneDelegate: RCTDefaultReactNativeFactoryDelegate, UIWindowSceneDelegate {
var window: UIWindow?
var reactNativeFactory: RCTReactNativeFactory?

func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
guard let windowScene = scene as? UIWindowScene else { return }
guard let appDelegate = UIApplication.shared.delegate as? AppDelegate,
let factory = appDelegate.reactNativeFactory else {
assertionFailure("React Native must be initialized before connecting a scene")
return
}

dependencyProvider = RCTAppDependencyProvider()
let factory = RCTReactNativeFactory(delegate: self)
reactNativeFactory = factory

let window = UIWindow(windowScene: windowScene)
self.window = window
appDelegate.window = window

#if DEBUG
factory.devMenuConfiguration = RCTDevMenuConfiguration(
devMenuEnabled: true,
shakeGestureEnabled: true,
keyboardShortcutsEnabled: true
)
#endif

factory.startReactNative(
withModuleName: "NitroSQLiteExample",
in: window,
launchOptions: appDelegate.launchOptions
connectionOptions: connectionOptions
)
}

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
RCTLinkingManager.scene(scene, openURLContexts: URLContexts)
}

func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
RCTLinkingManager.scene(scene, continue: userActivity)
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
Loading
Loading