mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 14:18:32 +03:00
removed fast image
This commit is contained in:
parent
c205c8ebef
commit
9de19d2bde
@ -778,7 +778,6 @@
|
||||
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
|
||||
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/RCTI18nStrings.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/TOCropViewController/TOCropViewControllerBundle.bundle",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
@ -805,7 +804,6 @@
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCTI18nStrings.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/TOCropViewControllerBundle.bundle",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@ -949,7 +947,6 @@
|
||||
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
|
||||
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/RCTI18nStrings.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
|
||||
"${PODS_CONFIGURATION_BUILD_DIR}/TOCropViewController/TOCropViewControllerBundle.bundle",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
@ -976,7 +973,6 @@
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCTI18nStrings.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/TOCropViewControllerBundle.bundle",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -32,6 +32,12 @@ PODS:
|
||||
- ExpoModulesCore
|
||||
- ExpoFileSystem (16.0.8):
|
||||
- ExpoModulesCore
|
||||
- ExpoImage (1.10.6):
|
||||
- ExpoModulesCore
|
||||
- SDWebImage (~> 5.17.0)
|
||||
- SDWebImageAVIFCoder (~> 0.10.1)
|
||||
- SDWebImageSVGCoder (~> 1.7.0)
|
||||
- SDWebImageWebPCoder (~> 0.13.0)
|
||||
- ExpoKeepAwake (12.8.2):
|
||||
- ExpoModulesCore
|
||||
- ExpoModulesCore (1.11.10):
|
||||
@ -209,7 +215,16 @@ PODS:
|
||||
- hermes-engine (0.73.2):
|
||||
- hermes-engine/Pre-built (= 0.73.2)
|
||||
- hermes-engine/Pre-built (0.73.2)
|
||||
- libaom (3.0.0):
|
||||
- libvmaf (>= 2.2.0)
|
||||
- libavif (0.11.1):
|
||||
- libavif/libaom (= 0.11.1)
|
||||
- libavif/core (0.11.1)
|
||||
- libavif/libaom (0.11.1):
|
||||
- libaom (>= 2.0.0)
|
||||
- libavif/core
|
||||
- libevent (2.1.12)
|
||||
- libvmaf (2.3.1)
|
||||
- libwebp (1.3.2):
|
||||
- libwebp/demux (= 1.3.2)
|
||||
- libwebp/mux (= 1.3.2)
|
||||
@ -1333,10 +1348,6 @@ PODS:
|
||||
- React-Core
|
||||
- RNDeviceInfo (10.12.0):
|
||||
- React-Core
|
||||
- RNFastImage (8.6.3):
|
||||
- React-Core
|
||||
- SDWebImage (~> 5.19.0)
|
||||
- SDWebImageWebPCoder (~> 0.8.4)
|
||||
- RNFBAnalytics (14.12.0):
|
||||
- Firebase/Analytics (= 8.15.0)
|
||||
- React-Core
|
||||
@ -1397,12 +1408,17 @@ PODS:
|
||||
- glog
|
||||
- RCT-Folly (= 2022.05.16.00)
|
||||
- React-Core
|
||||
- SDWebImage (5.19.0):
|
||||
- SDWebImage/Core (= 5.19.0)
|
||||
- SDWebImage/Core (5.19.0)
|
||||
- SDWebImageWebPCoder (0.8.5):
|
||||
- SDWebImage (5.17.0):
|
||||
- SDWebImage/Core (= 5.17.0)
|
||||
- SDWebImage/Core (5.17.0)
|
||||
- SDWebImageAVIFCoder (0.10.1):
|
||||
- libavif (>= 0.11.0)
|
||||
- SDWebImage (~> 5.10)
|
||||
- SDWebImageSVGCoder (1.7.0):
|
||||
- SDWebImage/Core (~> 5.6)
|
||||
- SDWebImageWebPCoder (0.13.0):
|
||||
- libwebp (~> 1.0)
|
||||
- SDWebImage/Core (~> 5.10)
|
||||
- SDWebImage/Core (~> 5.17)
|
||||
- SocketRocket (0.6.1)
|
||||
- TcpSockets (4.0.0):
|
||||
- React
|
||||
@ -1428,6 +1444,7 @@ DEPENDENCIES:
|
||||
- EXFont (from `../node_modules/expo-font/ios`)
|
||||
- Expo (from `../node_modules/expo`)
|
||||
- ExpoFileSystem (from `../node_modules/expo-file-system/ios`)
|
||||
- ExpoImage (from `../node_modules/expo-image/ios`)
|
||||
- ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
|
||||
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
|
||||
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
|
||||
@ -1529,7 +1546,6 @@ DEPENDENCIES:
|
||||
- "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
|
||||
- "RNCPushNotificationIOS (from `../node_modules/@react-native-community/push-notification-ios`)"
|
||||
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
|
||||
- RNFastImage (from `../node_modules/react-native-fast-image`)
|
||||
- "RNFBAnalytics (from `../node_modules/@react-native-firebase/analytics`)"
|
||||
- "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
|
||||
- "RNFBDynamicLinks (from `../node_modules/@react-native-firebase/dynamic-links`)"
|
||||
@ -1575,13 +1591,18 @@ SPEC REPOS:
|
||||
- GoogleAppMeasurement
|
||||
- GoogleDataTransport
|
||||
- GoogleUtilities
|
||||
- libaom
|
||||
- libavif
|
||||
- libevent
|
||||
- libvmaf
|
||||
- libwebp
|
||||
- lottie-ios
|
||||
- nanopb
|
||||
- OpenSSL-Universal
|
||||
- PromisesObjC
|
||||
- SDWebImage
|
||||
- SDWebImageAVIFCoder
|
||||
- SDWebImageSVGCoder
|
||||
- SDWebImageWebPCoder
|
||||
- SocketRocket
|
||||
- TOCropViewController
|
||||
@ -1610,6 +1631,8 @@ EXTERNAL SOURCES:
|
||||
:path: "../node_modules/expo"
|
||||
ExpoFileSystem:
|
||||
:path: "../node_modules/expo-file-system/ios"
|
||||
ExpoImage:
|
||||
:path: "../node_modules/expo-image/ios"
|
||||
ExpoKeepAwake:
|
||||
:path: "../node_modules/expo-keep-awake/ios"
|
||||
ExpoModulesCore:
|
||||
@ -1761,8 +1784,6 @@ EXTERNAL SOURCES:
|
||||
:path: "../node_modules/@react-native-community/push-notification-ios"
|
||||
RNDeviceInfo:
|
||||
:path: "../node_modules/react-native-device-info"
|
||||
RNFastImage:
|
||||
:path: "../node_modules/react-native-fast-image"
|
||||
RNFBAnalytics:
|
||||
:path: "../node_modules/@react-native-firebase/analytics"
|
||||
RNFBApp:
|
||||
@ -1819,6 +1840,7 @@ SPEC CHECKSUMS:
|
||||
EXFont: f20669cb266ef48b004f1eb1f2b20db96cd1df9f
|
||||
Expo: bbffa600c41f904151a925e5a214d1f4c5a79794
|
||||
ExpoFileSystem: eecaf6796aed0f4dd20042dc2ca2cac6c4bc1185
|
||||
ExpoImage: 8cf2d51de3d03b7e984e9b0ba8f19c0c22057001
|
||||
ExpoKeepAwake: 0f5cad99603a3268e50af9a6eb8b76d0d9ac956c
|
||||
ExpoModulesCore: b2ae7a3fc6193556273c5db90065fbe7e11c7a60
|
||||
FBLazyVector: fbc4957d9aa695250b55d879c1d86f79d7e69ab4
|
||||
@ -1844,7 +1866,10 @@ SPEC CHECKSUMS:
|
||||
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
|
||||
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
|
||||
hermes-engine: b361c9ef5ef3cda53f66e195599b47e1f84ffa35
|
||||
libaom: 144606b1da4b5915a1054383c3a4459ccdb3c661
|
||||
libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7
|
||||
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
|
||||
libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711
|
||||
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
|
||||
lottie-ios: 3d98679b41fa6fd6aff2352b3953dbd3df8a397e
|
||||
lottie-react-native: a2ae9c27c273b060b2affff2957bc0ff7fdca353
|
||||
@ -1919,7 +1944,6 @@ SPEC CHECKSUMS:
|
||||
RNCClipboard: 204b94473a99932e314b730a81363e0bf795a60d
|
||||
RNCPushNotificationIOS: 64218f3c776c03d7408284a819b2abfda1834bc8
|
||||
RNDeviceInfo: db5c64a060e66e5db3102d041ebe3ef307a85120
|
||||
RNFastImage: f3bbf7af65ccf6c3be1b28eb937dd41fb06da948
|
||||
RNFBAnalytics: ea1421b49a0bf5e5bb7274df4a330713d0e85d2e
|
||||
RNFBApp: e4439717c23252458da2b41b81b4b475c86f90c4
|
||||
RNFBDynamicLinks: 538840f6e3f58511f857d15df1bc25ed655dc283
|
||||
@ -1936,8 +1960,10 @@ SPEC CHECKSUMS:
|
||||
RNSVG: d7d7bc8229af3842c9cfc3a723c815a52cdd1105
|
||||
RNTusClient: b90393226531c118c4716a2b71128e3b9d9c77ee
|
||||
RNVectorIcons: 8cabd5809519015ed2c1cdb4ec83d563296bd5cc
|
||||
SDWebImage: 981fd7e860af070920f249fd092420006014c3eb
|
||||
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
|
||||
SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9
|
||||
SDWebImageAVIFCoder: 8348fef6d0ec69e129c66c9fe4d74fbfbf366112
|
||||
SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c
|
||||
SDWebImageWebPCoder: af09429398d99d524cae2fe00f6f0f6e491ed102
|
||||
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
|
||||
TcpSockets: 4ef55305239923b343ed0a378b1fac188b1373b0
|
||||
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
|
||||
|
@ -119,7 +119,6 @@
|
||||
"react-native-dynamic": "^1.0.0",
|
||||
"react-native-email-link": "^1.14.3",
|
||||
"react-native-extended-stylesheet": "^0.10.0",
|
||||
"react-native-fast-image": "^8.6.3",
|
||||
"react-native-fingerprint-scanner": "hieuvp/react-native-fingerprint-scanner",
|
||||
"react-native-flipper": "^0.164.0",
|
||||
"react-native-gesture-handler": "^2.14.0",
|
||||
|
@ -1,41 +0,0 @@
|
||||
diff --git a/node_modules/react-native-fast-image/RNFastImage.podspec b/node_modules/react-native-fast-image/RNFastImage.podspec
|
||||
index db0fada..1dd5916 100644
|
||||
--- a/node_modules/react-native-fast-image/RNFastImage.podspec
|
||||
+++ b/node_modules/react-native-fast-image/RNFastImage.podspec
|
||||
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
||||
s.source_files = "ios/**/*.{h,m}"
|
||||
|
||||
s.dependency 'React-Core'
|
||||
- s.dependency 'SDWebImage', '~> 5.11.1'
|
||||
- s.dependency 'SDWebImageWebPCoder', '~> 0.8.4'
|
||||
+ s.dependency 'SDWebImage', '~> 5.17.0'
|
||||
+ s.dependency 'SDWebImageWebPCoder', '~> 0.13.0'
|
||||
end
|
||||
diff --git a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
|
||||
index f710081..fe20770 100644
|
||||
--- a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
|
||||
+++ b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
|
||||
@@ -73,12 +73,17 @@
|
||||
|
||||
- (UIImage*) makeImage: (UIImage*)image withTint: (UIColor*)color {
|
||||
UIImage* newImage = [image imageWithRenderingMode: UIImageRenderingModeAlwaysTemplate];
|
||||
- UIGraphicsBeginImageContextWithOptions(image.size, NO, newImage.scale);
|
||||
- [color set];
|
||||
- [newImage drawInRect: CGRectMake(0, 0, image.size.width, newImage.size.height)];
|
||||
- newImage = UIGraphicsGetImageFromCurrentImageContext();
|
||||
- UIGraphicsEndImageContext();
|
||||
- return newImage;
|
||||
+
|
||||
+ UIGraphicsImageRendererFormat *format = [UIGraphicsImageRendererFormat defaultFormat];
|
||||
+ UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:image.size format:format];
|
||||
+
|
||||
+ UIImage *resultImage = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
|
||||
+ CGRect rect = CGRectMake(0, 0, image.size.width, image.size.height);
|
||||
+ [color set];
|
||||
+ [newImage drawInRect:rect];
|
||||
+ }];
|
||||
+
|
||||
+ return resultImage;
|
||||
}
|
||||
|
||||
- (void) setImage: (UIImage*)image {
|
@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { AlertButton } from 'react-native';
|
||||
import { Source } from 'react-native-fast-image';
|
||||
import { ImageSource } from 'expo-image';
|
||||
import { useSelector, useDispatch } from 'react-redux';
|
||||
import { hideActionModal } from '../../../redux/actions/uiAction';
|
||||
import ActionModalView, { ActionModalRef } from '../view/actionModalView';
|
||||
@ -14,7 +14,7 @@ export interface ActionModalData {
|
||||
body: string;
|
||||
para?: string;
|
||||
buttons: ExtendedAlertButton[];
|
||||
headerImage?: Source;
|
||||
headerImage?: ImageSource;
|
||||
onClosed: () => void;
|
||||
headerContent?: React.ReactNode;
|
||||
bodyContent?: React.ReactNode;
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { ViewStyle } from 'react-native';
|
||||
import { ViewStyle, ImageStyle } from 'react-native';
|
||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
import { ImageStyle } from 'react-native-fast-image';
|
||||
|
||||
export default EStyleSheet.create({
|
||||
hiveEngineWrapper: {
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { TextStyle, ViewStyle } from 'react-native';
|
||||
import { TextStyle, ViewStyle, ImageStyle } from 'react-native';
|
||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
import { ImageStyle } from 'react-native-fast-image';
|
||||
import { isRTL } from '../../../utils/I18nUtils';
|
||||
|
||||
export default EStyleSheet.create({
|
||||
|
@ -50,7 +50,7 @@ export const parsePost = (
|
||||
|
||||
// extract cover image and thumbnail from post body
|
||||
post.image = catchPostImage(post, 600, 500, webp ? 'webp' : 'match');
|
||||
post.thumbnail = catchPostImage(post, 10, 7, webp ? 'webp' : 'match');
|
||||
post.thumbnail = catchPostImage(post, 10, 7, webp ? 'webp' : 'match');
|
||||
|
||||
// find and inject thumbnail ratio
|
||||
if (post.json_metadata.image_ratios) {
|
||||
|
@ -11449,11 +11449,6 @@ react-native-extended-stylesheet@^0.10.0:
|
||||
css-mediaquery "^0.1.2"
|
||||
object-resolve-path "^1.1.0"
|
||||
|
||||
react-native-fast-image@^8.6.3:
|
||||
version "8.6.3"
|
||||
resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-8.6.3.tgz#6edc3f9190092a909d636d93eecbcc54a8822255"
|
||||
integrity sha512-Sdw4ESidXCXOmQ9EcYguNY2swyoWmx53kym2zRsvi+VeFCHEdkO+WG1DK+6W81juot40bbfLNhkc63QnWtesNg==
|
||||
|
||||
react-native-fingerprint-scanner@hieuvp/react-native-fingerprint-scanner:
|
||||
version "6.0.0"
|
||||
resolved "https://codeload.github.com/hieuvp/react-native-fingerprint-scanner/tar.gz/3898597b031ebf4b2f685958b7de0a755bb8fb16"
|
||||
|
Loading…
Reference in New Issue
Block a user