-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add web platform passthrough support
- Loading branch information
Showing
43 changed files
with
4,560 additions
and
2,605 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.yarn/patches/react-native-web-npm-0.19.13-fe8941425a.patch
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,33 @@ | ||
diff --git a/dist/exports/Image/index.js b/dist/exports/Image/index.js | ||
index 348831dc4cc4182a35a5259b612e46e88594ba3a..b917361e73658ea16fa9f80ced985df28abdcf1e 100644 | ||
--- a/dist/exports/Image/index.js | ||
+++ b/dist/exports/Image/index.js | ||
@@ -5,7 +5,7 @@ | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
- * | ||
+ * | ||
*/ | ||
|
||
'use client'; | ||
@@ -294,6 +294,19 @@ ImageWithStatics.prefetch = function (uri) { | ||
ImageWithStatics.queryCache = function (uris) { | ||
return ImageLoader.queryCache(uris); | ||
}; | ||
+ImageWithStatics.resolveAssetSource = function (source) { | ||
+ var asset = getAssetByID(source); | ||
+ var displayImageUri = resolveAssetUri(source); | ||
+ var imageSizeStyle = resolveAssetDimensions(source); | ||
+ | ||
+ return { | ||
+ height: imageSizeStyle.height, | ||
+ width: imageSizeStyle.width, | ||
+ uri: displayImageUri, | ||
+ scale: asset.scales[0], | ||
+ }; | ||
+}; | ||
+ | ||
var styles = StyleSheet.create({ | ||
root: { | ||
flexBasis: 'auto', |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pbxproj -text |
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.
Binary file not shown.
7 changes: 0 additions & 7 deletions
7
apps/example/android/gradle/wrapper/gradle-wrapper.properties
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.