@sendbird/uikit-react-native-foundation 1.0.0-rc.2 → 1.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,8 +12,6 @@ function getImageModule() {
|
|
|
12
12
|
|
|
13
13
|
if (hasFastImage) {
|
|
14
14
|
try {
|
|
15
|
-
require('react-native-fast-image');
|
|
16
|
-
|
|
17
15
|
return require('./Image.fastimage').default;
|
|
18
16
|
} catch (e) {
|
|
19
17
|
return require('./Image.reactnative').default;
|
|
@@ -26,4 +24,4 @@ function getImageModule() {
|
|
|
26
24
|
var _default = getImageModule();
|
|
27
25
|
|
|
28
26
|
exports.default = _default;
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendbird/uikit-react-native-foundation",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "react-native-uikit",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@sendbird/uikit-utils": "1.0.0-rc.
|
|
41
|
+
"@sendbird/uikit-utils": "1.0.0-rc.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "17.0.2",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"readmeFile": "./README.md",
|
|
81
81
|
"displayName": "@sendbird/uikit-react-native-foundation"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "770f49f1cab2380dcb5b1a81ca9d206442a6dd58"
|
|
84
84
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { FastImageProps, ResizeMode, Source } from 'react-native-fast-image';
|
|
3
3
|
|
|
4
4
|
import type { SendbirdImageComponent, SendbirdImageProps } from './index';
|
|
5
5
|
|
|
@@ -46,7 +46,11 @@ function convertResizeMode(mode?: SendbirdImageProps['resizeMode']): ResizeMode
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
let FastImage: (props: FastImageProps) => JSX.Element | null = () => null;
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
FastImage = require('react-native-fast-image') as (props: FastImageProps) => JSX.Element;
|
|
53
|
+
} catch {}
|
|
50
54
|
|
|
51
55
|
const Image_FastImage: SendbirdImageComponent = ({ source, resizeMode, onLoad, onError, style, ...props }) => {
|
|
52
56
|
return (
|