Repository navigation
chore: upgrade library and example app to RN 0.88 #827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
67e2017
chore: upgrade library and example app to RN 0.88
hejsztynx a63d061
chore: update ios e2e screenshots baselines
hejsztynx 17e1393
chore(android): update android e2e screenshots baselines
hejsztynx e77e260
Merge remote-tracking branch 'origin/main' into @ksienkiewicz/chore-u…
exploIF 4b7a882
Merge remote-tracking branch 'origin/main' into @ksienkiewicz/chore-u…
exploIF ca656cd
chore: update lockfile
exploIF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
+12 Bytes
(100%)
.maestro/enrichedInput/screenshots/android/checkbox_toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+881 Bytes
(100%)
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+843 Bytes
(100%)
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+814 Bytes
(100%)
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+14 Bytes
(100%)
.maestro/enrichedInput/screenshots/android/paragraph_styles_lists.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+72 Bytes
(100%)
.maestro/enrichedInput/screenshots/android/paragraph_styles_no_crash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+52 Bytes
(100%)
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+50 Bytes
(100%)
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+47 Bytes
(100%)
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 40 additions & 37 deletions
77
apps/example/ios/EnrichedTextInputExample.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 1 addition & 38 deletions
39
apps/example/ios/EnrichedTextInputExample/AppDelegate.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,11 @@ | ||
| import UIKit | ||
| import React | ||
| import React_RCTAppDelegate | ||
| import ReactAppDependencyProvider | ||
|
|
||
| @main | ||
| class AppDelegate: UIResponder, UIApplicationDelegate { | ||
| var window: UIWindow? | ||
|
|
||
| var reactNativeDelegate: ReactNativeDelegate? | ||
| var reactNativeFactory: RCTReactNativeFactory? | ||
|
|
||
| func application( | ||
| _ application: UIApplication, | ||
| didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil | ||
| ) -> Bool { | ||
| let delegate = ReactNativeDelegate() | ||
| let factory = RCTReactNativeFactory(delegate: delegate) | ||
| delegate.dependencyProvider = RCTAppDependencyProvider() | ||
|
|
||
| reactNativeDelegate = delegate | ||
| reactNativeFactory = factory | ||
|
|
||
| window = UIWindow(frame: UIScreen.main.bounds) | ||
|
|
||
| factory.startReactNative( | ||
| withModuleName: "EnrichedTextInputExample", | ||
| in: window, | ||
| 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 | ||
| true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
apps/example/ios/EnrichedTextInputExample/SceneDelegate.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import React | ||
| import React_RCTAppDelegate | ||
| import ReactAppDependencyProvider | ||
| import UIKit | ||
|
|
||
| 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 | ||
| } | ||
|
|
||
| dependencyProvider = RCTAppDependencyProvider() | ||
| reactNativeFactory = RCTReactNativeFactory(delegate: self) | ||
| window = UIWindow(windowScene: windowScene) | ||
|
|
||
| #if DEBUG | ||
| let devMenuConfiguration = RCTDevMenuConfiguration( | ||
| devMenuEnabled: true, | ||
| shakeGestureEnabled: true, | ||
| keyboardShortcutsEnabled: true | ||
| ) | ||
| reactNativeFactory?.devMenuConfiguration = devMenuConfiguration | ||
| #endif | ||
|
|
||
| reactNativeFactory?.startReactNative( | ||
| withModuleName: "EnrichedTextInputExample", | ||
| in: window, | ||
| 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 | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.