-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 102b718 Author: Sergei Butko <svbutko@hotmail.com> Date: Thu Sep 30 12:59:05 2021 +0300 Add callback as optional parameter to updateProps (#7277) * Add callback as optional parameter to updateProps * Add optional callback to NavigationDelegate * Add tests to Store and ComponentWrapper Co-authored-by: Ward Abbass <warda@wix.com> commit 92bbcc1 Author: Jordan Becker <jordanbeckerfr@gmail.com> Date: Thu Sep 30 10:32:22 2021 +0200 Fix iOS 15 bars appearance (#7270) Following #7266 and especially [my comment there](#7266 (comment)), I'm opening this PR to provide a quick fix to people experiencing issues when building RNN using Xcode 13. This should be considered a fix PR rather than a feature PR, as what it's doing is basically duplicating the already set `standardAppearance` to a `scrollEdgeAppearance`. What this means is that the bars will have the same visual aspect whether they're displayed alongside the edge of a scroll view. In a future, more elaborate PR, we could imagine a way to be able to provide `scrollEdgeAppearance` values from JS for more control over the native bars. Fixes #7266 Fixes #7268 Co-authored-by: Yogev Ben David <yogev132@gmail.com> commit f87e1ca Author: Sergei Butko <svbutko@hotmail.com> Date: Thu Sep 30 01:06:36 2021 +0300 Remove default splash layout color on Android (#7276) Co-authored-by: Ward Abbass <warda@wix.com> commit a207f62 Author: Tom Spencer <tom.spencer@studiozeffa.com> Date: Wed Sep 29 15:44:15 2021 +0100 Fix sideMenu docs (#7275) Updated the example using `Navigation.mergeOptions` to open the side menu with the correct first argument.
- Loading branch information
Showing
26 changed files
with
202 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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,14 +1,21 @@ | ||
#import "BottomTabPresenterCreator.h" | ||
#import "BottomTabAppearancePresenter.h" | ||
#import "RNNTabBarItemCreator.h" | ||
#import "TabBarItemAppearanceCreator.h" | ||
#import "TabBarItemIOS15Creator.h" | ||
|
||
@implementation BottomTabPresenterCreator | ||
|
||
+ (BottomTabPresenter *)createWithDefaultOptions:(RNNNavigationOptions *)defaultOptions { | ||
if (@available(iOS 13.0, *)) { | ||
return [[BottomTabAppearancePresenter alloc] initWithDefaultOptions:defaultOptions]; | ||
RNNTabBarItemCreator *tabCreator; | ||
if (@available(iOS 15.0, *)) { | ||
tabCreator = [TabBarItemIOS15Creator new]; | ||
} else if (@available(iOS 13.0, *)) { | ||
tabCreator = [TabBarItemAppearanceCreator new]; | ||
} else { | ||
return [[BottomTabPresenter alloc] initWithDefaultOptions:defaultOptions]; | ||
tabCreator = [RNNTabBarItemCreator new]; | ||
} | ||
|
||
return [[BottomTabPresenter alloc] initWithDefaultOptions:defaultOptions tabCreator:tabCreator]; | ||
} | ||
|
||
@end |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,6 @@ | ||
#import "TabBarItemAppearanceCreator.h" | ||
|
||
API_AVAILABLE(ios(15.0)) | ||
@interface TabBarItemIOS15Creator : TabBarItemAppearanceCreator | ||
|
||
@end |
Oops, something went wrong.