Skip to content

Commit

Permalink
Merge pull request #515 from jpudysz/feature/rn77
Browse files Browse the repository at this point in the history
feat: add support for RN 0.77
  • Loading branch information
jpudysz authored Jan 22, 2025
2 parents a30aa8e + 57615db commit 9bb8a87
Show file tree
Hide file tree
Showing 17 changed files with 1,024 additions and 1,119 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/unistyles/UnistylesPackage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class UnistylesPackage: TurboReactPackage() {
mapOf(UnistylesModule.NAME to ReactModuleInfo(
UnistylesModule.NAME,
UnistylesModule.NAME,
_canOverrideExistingModule = true,
_needsEagerInit = true,
canOverrideExistingModule = true,
needsEagerInit = true,
isCxxModule = true,
isTurboModule = true
))
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@astrojs/sitemap": "3.2.1",
"@astrojs/starlight": "0.30.5",
"@fontsource-variable/nunito": "5.1.1",
"astro": "5.1.4",
"astro": "5.1.8",
"astro-expressive-code": "0.38.3",
"astro-seo": "0.8.4",
"autoprefixer": "10.4.20",
Expand Down
1 change: 1 addition & 0 deletions example/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ruby ">= 2.6.10"
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'concurrent-ruby', '< 1.3.4'
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
ndkVersion = "27.1.12297006"
kotlinVersion = "2.0.21"
}
repositories {
google()
Expand Down
30 changes: 30 additions & 0 deletions example/ios/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.moduleName = "example"
self.dependencyProvider = RCTAppDependencyProvider()

// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]

return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

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
}
}
5 changes: 0 additions & 5 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ target 'example' do
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'exampleTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
Expand Down
Loading

0 comments on commit 9bb8a87

Please sign in to comment.