esoftplay 0.0.269-beta934b397 → 0.0.269-beta96052d3
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.
- package/bin/build.js +3 -1
- package/modules/lib/crypt.js +1 -0
- package/modules/lib/picture.tsx +4 -2
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -300,10 +300,12 @@ yarn-error.log
|
|
|
300
300
|
const AppJS = `import { LibNotification } from 'esoftplay/cache/lib/notification/import';
|
|
301
301
|
import { UserIndex } from 'esoftplay/cache/user/index/import';
|
|
302
302
|
import * as Notifications from 'expo-notifications';
|
|
303
|
+
import { Platform } from 'react-native';
|
|
303
304
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
304
305
|
import { enableFreeze, enableScreens } from 'react-native-screens';
|
|
305
306
|
|
|
306
|
-
|
|
307
|
+
if (Platform.OS == 'android')
|
|
308
|
+
enableFreeze()
|
|
307
309
|
enableScreens()
|
|
308
310
|
|
|
309
311
|
Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x));
|
package/modules/lib/crypt.js
CHANGED
package/modules/lib/picture.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export interface LibPictureProps {
|
|
|
17
17
|
/** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/picture.md) untuk melihat dokumentasi*/
|
|
18
18
|
export default function m(props: LibPictureProps): any {
|
|
19
19
|
|
|
20
|
-
let resizeMode
|
|
20
|
+
let resizeMode: any
|
|
21
21
|
if (props?.style?.resizeMode == 'cover')
|
|
22
22
|
resizeMode = "cover"
|
|
23
23
|
else if (props?.style?.resizeMode == 'contain')
|
|
@@ -35,6 +35,8 @@ export default function m(props: LibPictureProps): any {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<Image {...props}
|
|
38
|
+
<Image {...props}
|
|
39
|
+
recyclingKey={props.source.uri}
|
|
40
|
+
source={source} contentFit={resizeMode} allowDownscaling cachePolicy={"memory-disk"} />
|
|
39
41
|
)
|
|
40
42
|
}
|
package/package.json
CHANGED