We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84dc4cf commit 8ba8d92Copy full SHA for 8ba8d92
src/index.android.ts
@@ -115,7 +115,7 @@ export function nativeImageProperty(...args) {
115
},
116
toNative(value) {
117
value = _createImageSourceFromSrc(value);
118
- return value.android as android.graphics.Bitmap;
+ return value?.android as android.graphics.Bitmap;
119
120
121
src/index.ios.ts
@@ -112,7 +112,7 @@ export function nativeImageProperty(...args) {
112
113
114
- return value.ios as UIImage;
+ return value?.ios as UIImage;
0 commit comments