Skip to content

Commit

Permalink
Add web platform passthrough support
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmas committed Oct 23, 2024
1 parent a1c9b69 commit 93a7b2d
Show file tree
Hide file tree
Showing 43 changed files with 4,560 additions and 2,605 deletions.
33 changes: 33 additions & 0 deletions .yarn/patches/react-native-web-npm-0.19.13-fe8941425a.patch
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',
1,097 changes: 1,097 additions & 0 deletions .yarn/patches/three-npm-0.168.0-240bac8179.patch

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions apps/example/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
5 changes: 4 additions & 1 deletion apps/example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
android
ios
.expo
*.binlog
*.hprof
*.xcworkspace/
Expand All @@ -13,4 +16,4 @@ dist/*
!dist/.gitignore
local.properties
msbuild.binlog
node_modules/
node_modules/
43 changes: 0 additions & 43 deletions apps/example/android/build.gradle

This file was deleted.

55 changes: 0 additions & 55 deletions apps/example/android/gradle.properties

This file was deleted.

Binary file not shown.
7 changes: 0 additions & 7 deletions apps/example/android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading

0 comments on commit 93a7b2d

Please sign in to comment.