-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into content-inset
- Loading branch information
Showing
8 changed files
with
57 additions
and
17 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 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,13 @@ | ||
# Patches for `turbo-ios` and `turbo-android` libraries | ||
|
||
This directory contains patches for the `turbo-ios` and `turbo-android` libraries. The patches are applied during the build process. Unfortunately, this process is necessary to make the libraries work correctly with `react-native-turbo`. | ||
|
||
## Changes | ||
|
||
### `turbo-ios` | ||
|
||
The patch removes the `NSLayoutConstraint` set in `VisitableView.installRefreshControl` method. This is necessary to make `contentInset` work properly with `UIRefreshControl`. | ||
|
||
### `turbo-android` | ||
|
||
The patch makes the necessary interfaces, classes and methods public so that they can be accessed from the `react-native-turbo` native land. |
File renamed without changes.
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,21 @@ | ||
diff --git a/Source/Visitable/VisitableView.swift b/Source/Visitable/VisitableView.swift | ||
index 12452b5..e9c37b8 100644 | ||
--- a/Source/Visitable/VisitableView.swift | ||
+++ b/Source/Visitable/VisitableView.swift | ||
@@ -69,16 +69,6 @@ open class VisitableView: UIView { | ||
|
||
#if !targetEnvironment(macCatalyst) | ||
scrollView.addSubview(refreshControl) | ||
- | ||
- /// Infer refresh control's default height from its frame, if given. | ||
- /// Otherwise fallback to 60 (the default height). | ||
- let refreshControlHeight = refreshControl.frame.height > 0 ? refreshControl.frame.height : 60 | ||
- | ||
- NSLayoutConstraint.activate([ | ||
- refreshControl.centerXAnchor.constraint(equalTo: centerXAnchor), | ||
- refreshControl.topAnchor.constraint(equalTo: safeAreaLayoutGuide.topAnchor), | ||
- refreshControl.heightAnchor.constraint(equalToConstant: refreshControlHeight) | ||
- ]) | ||
#endif | ||
} | ||
|
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