fix: Fixes WebP rendering on iOS 12. (#412)

fixes issue #298 #385
This commit is contained in:
Dylan Vann 2019-02-22 00:37:12 -05:00 committed by GitHub
parent dbddf44377
commit 97630c8ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 134 additions and 80 deletions

@ -1 +1 @@
Subproject commit dc5c974b89509992d6c6e0d0510344fd0e35baa6
Subproject commit ccb8b533c65a0e6dde9e8b34129c3c6fb73b11f4

View File

@ -1,6 +1,6 @@
{
"name": "react-native-fast-image",
"version": "0.0.0-development",
"version": "1.0.0-development",
"description": "🚩 FastImage, performant React Native image component.",
"keywords": [
"cache",

View File

@ -7,13 +7,38 @@ PODS:
- DoubleConversion
- glog
- glog (0.3.5)
- libwebp (0.6.1):
- libwebp/core (= 0.6.1)
- libwebp/dec (= 0.6.1)
- libwebp/demux (= 0.6.1)
- libwebp/dsp (= 0.6.1)
- libwebp/enc (= 0.6.1)
- libwebp/mux (= 0.6.1)
- libwebp/utils (= 0.6.1)
- libwebp/webp (= 0.6.1)
- libwebp/core (0.6.1):
- libwebp/webp
- libwebp/dec (0.6.1):
- libwebp/core
- libwebp/demux (0.6.1):
- libwebp/core
- libwebp/dsp (0.6.1):
- libwebp/core
- libwebp/enc (0.6.1):
- libwebp/core
- libwebp/mux (0.6.1):
- libwebp/core
- libwebp/utils (0.6.1):
- libwebp/core
- libwebp/webp (0.6.1)
- React (0.57.3):
- React/Core (= 0.57.3)
- react-native-fast-image (5.0.10):
- react-native-fast-image (1.0.0-development):
- FLAnimatedImage
- React
- SDWebImage/Core
- SDWebImage/GIF
- SDWebImage/WebP
- react-native-image-picker (0.27.1):
- React
- React/Core (0.57.3):
@ -53,10 +78,13 @@ PODS:
- React/RCTBlob
- RNVectorIcons (6.0.2):
- React
- SDWebImage/Core (4.4.2)
- SDWebImage/GIF (4.4.2):
- SDWebImage/Core (4.4.5)
- SDWebImage/GIF (4.4.5):
- FLAnimatedImage (~> 1.0)
- SDWebImage/Core
- SDWebImage/WebP (4.4.5):
- libwebp (~> 0.5)
- SDWebImage/Core
- yoga (0.57.3.React)
DEPENDENCIES:
@ -80,6 +108,7 @@ SPEC REPOS:
https://github.com/cocoapods/specs.git:
- boost-for-react-native
- FLAnimatedImage
- libwebp
- SDWebImage
EXTERNAL SOURCES:
@ -106,13 +135,14 @@ SPEC CHECKSUMS:
FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31
Folly: c89ac2d5c6ab169cd7397ef27485c44f35f742c7
glog: e8acf0ebbf99759d3ff18c86c292a5898282dcde
React: 1fe0eb13d90b625d94c3b117c274dcfd2e760e11
react-native-fast-image: cba3d9bf9c2cf8ddb643d887a686c53a5dd90a2c
react-native-image-picker: f42de90075c5b1af53417af927631d909a1a746e
RNVectorIcons: 8c52e1e8da1153613fdef44748e865c25556cb9c
SDWebImage: 624d6e296c69b244bcede364c72ae0430ac14681
yoga: b1ce48b6cf950b98deae82838f5173ea7cf89e85
libwebp: 0f01098c6c17175391af621b2f14150f3ca16e16
React: a197ec4fee34abff321271f5614cabc517faed71
react-native-fast-image: 996f6dc73f4b534ed6587513ad448aae5a48ccbe
react-native-image-picker: 3fac3bf5b8ec802785c884c5bde0239ad8433b34
RNVectorIcons: d819334932bcda3332deb3d2c8ea4d069e0b98f9
SDWebImage: ecc03494e973b93b80213649d32175f8d2d17d4d
yoga: c991dffbcb89c7eee1aadf243b72e48d462ee34a
PODFILE CHECKSUM: 9c1b580892a7e8ba16c3ef11342f53e075ff596a
COCOAPODS: 1.5.3
COCOAPODS: 1.6.1

View File

@ -5,13 +5,17 @@
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
001E812303D0459F94E7D0CA /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */; };
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
00E356F31AD99517003FC87E /* ReactNativeFastImageExampleCocoaPodsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeFastImageExampleCocoaPodsTests.m */; };
0AB2506A4BFA46C9815FB0CE /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */; };
0C290A93886E465CA4242A83 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 00B0E8D549AC495E984CC5FC /* Ionicons.ttf */; };
11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
@ -22,6 +26,7 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
1E5A4F6A7C9741CFB9481D4F /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7D778597146E4F428E1A1944 /* MaterialIcons.ttf */; };
2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
@ -35,24 +40,20 @@
2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
2DCD954D1E0B4F2C00145EB5 /* ReactNativeFastImageExampleCocoaPodsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeFastImageExampleCocoaPodsTests.m */; };
2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
4264737B25A8C730381E2FEF /* libPods-ReactNativeFastImageExampleCocoaPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 29BCA26A25BE80EA2936FECC /* libPods-ReactNativeFastImageExampleCocoaPods.a */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
48CAC89CFED442BF900F0BA7 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 44554731BBAC467B9D0C93AB /* AntDesign.ttf */; };
FC7EA2A3D8664F828B414D03 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 981847634CDD4176B24BB5F3 /* Entypo.ttf */; };
0AB2506A4BFA46C9815FB0CE /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */; };
A6901A3E9A6B48598E3F48B7 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A1A2EAE5C560464FA10A7A16 /* Feather.ttf */; };
3E298FBB14314240837024E4 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D2285E2583F84E4A9FDDC142 /* FontAwesome.ttf */; };
001E812303D0459F94E7D0CA /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */; };
7C0ABD80AC31461583D6DD00 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */; };
EAF087E16D564188B5BB12D9 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */; };
602571F196A74736B8D84886 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */; };
0C290A93886E465CA4242A83 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 00B0E8D549AC495E984CC5FC /* Ionicons.ttf */; };
751A36C2A2604235B7C9D473 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */; };
1E5A4F6A7C9741CFB9481D4F /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7D778597146E4F428E1A1944 /* MaterialIcons.ttf */; };
9C87D3FCA8D14C92BBA2BC0D /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 09DAB6598CDF4325BE7902C5 /* Octicons.ttf */; };
8FC86BA6B83B42F3969C731D /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */; };
4264737B25A8C730381E2FEF /* libPods-ReactNativeFastImageExampleCocoaPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 29BCA26A25BE80EA2936FECC /* libPods-ReactNativeFastImageExampleCocoaPods.a */; };
44CEFEEFB7CC45CBB06068A9 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C325A7ED44D44D5C917B8268 /* Zocial.ttf */; };
48CAC89CFED442BF900F0BA7 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 44554731BBAC467B9D0C93AB /* AntDesign.ttf */; };
602571F196A74736B8D84886 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */; };
751A36C2A2604235B7C9D473 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */; };
7C0ABD80AC31461583D6DD00 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
8FC86BA6B83B42F3969C731D /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */; };
9C87D3FCA8D14C92BBA2BC0D /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 09DAB6598CDF4325BE7902C5 /* Octicons.ttf */; };
A6901A3E9A6B48598E3F48B7 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A1A2EAE5C560464FA10A7A16 /* Feather.ttf */; };
ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
EAF087E16D564188B5BB12D9 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */; };
FC7EA2A3D8664F828B414D03 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 981847634CDD4176B24BB5F3 /* Entypo.ttf */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -333,6 +334,7 @@
/* Begin PBXFileReference section */
008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
00B0E8D549AC495E984CC5FC /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = "<group>"; };
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = "<group>"; };
00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = "<group>"; };
00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
@ -341,6 +343,7 @@
00E356EE1AD99517003FC87E /* ReactNativeFastImageExampleCocoaPodsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeFastImageExampleCocoaPodsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* ReactNativeFastImageExampleCocoaPodsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeFastImageExampleCocoaPodsTests.m; sourceTree = "<group>"; };
09DAB6598CDF4325BE7902C5 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = "<group>"; };
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* ReactNativeFastImageExampleCocoaPods.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeFastImageExampleCocoaPods.app; sourceTree = BUILT_PRODUCTS_DIR; };
@ -355,27 +358,25 @@
2D02E47B1E0B4A5D006451C7 /* ReactNativeFastImageExampleCocoaPods-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeFastImageExampleCocoaPods-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
2D02E4901E0B4A5D006451C7 /* ReactNativeFastImageExampleCocoaPods-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeFastImageExampleCocoaPods-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Solid.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = "<group>"; };
44554731BBAC467B9D0C93AB /* AntDesign.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = AntDesign.ttf; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = "<group>"; };
447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Regular.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = "<group>"; };
5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome5_Brands.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = "<group>"; };
6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = "<group>"; };
76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialCommunityIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = "<group>"; };
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
7996F6D11899981B56E51366 /* Pods-ReactNativeFastImageExampleCocoaPods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeFastImageExampleCocoaPods.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods.debug.xcconfig"; sourceTree = "<group>"; };
79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; };
7D778597146E4F428E1A1944 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
981847634CDD4176B24BB5F3 /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = "<group>"; };
A1A2EAE5C560464FA10A7A16 /* Feather.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Feather.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = "<group>"; };
A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = "<group>"; };
ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = "<group>"; };
C325A7ED44D44D5C917B8268 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; };
D2285E2583F84E4A9FDDC142 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = "<group>"; };
FD0561220779242806D220FD /* Pods-ReactNativeFastImageExampleCocoaPods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeFastImageExampleCocoaPods.release.xcconfig"; path = "Pods/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods.release.xcconfig"; sourceTree = "<group>"; };
44554731BBAC467B9D0C93AB /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
981847634CDD4176B24BB5F3 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
A1A2EAE5C560464FA10A7A16 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
D2285E2583F84E4A9FDDC142 /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
00B0E8D549AC495E984CC5FC /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
7D778597146E4F428E1A1944 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
09DAB6598CDF4325BE7902C5 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
C325A7ED44D44D5C917B8268 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -558,6 +559,29 @@
name = Products;
sourceTree = "<group>";
};
1D13D3EAE36145BFA1F5B648 /* Resources */ = {
isa = PBXGroup;
children = (
44554731BBAC467B9D0C93AB /* AntDesign.ttf */,
981847634CDD4176B24BB5F3 /* Entypo.ttf */,
A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */,
A1A2EAE5C560464FA10A7A16 /* Feather.ttf */,
D2285E2583F84E4A9FDDC142 /* FontAwesome.ttf */,
623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */,
447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */,
440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */,
6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */,
00B0E8D549AC495E984CC5FC /* Ionicons.ttf */,
76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */,
7D778597146E4F428E1A1944 /* MaterialIcons.ttf */,
09DAB6598CDF4325BE7902C5 /* Octicons.ttf */,
79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */,
C325A7ED44D44D5C917B8268 /* Zocial.ttf */,
);
name = Resources;
path = "";
sourceTree = "<group>";
};
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
isa = PBXGroup;
children = (
@ -649,29 +673,6 @@
name = Products;
sourceTree = "<group>";
};
1D13D3EAE36145BFA1F5B648 /* Resources */ = {
isa = "PBXGroup";
children = (
44554731BBAC467B9D0C93AB /* AntDesign.ttf */,
981847634CDD4176B24BB5F3 /* Entypo.ttf */,
A1EB81477EE5415E91D8A919 /* EvilIcons.ttf */,
A1A2EAE5C560464FA10A7A16 /* Feather.ttf */,
D2285E2583F84E4A9FDDC142 /* FontAwesome.ttf */,
623B15A503BA40F1B9A066C5 /* FontAwesome5_Brands.ttf */,
447EFD43CEC94ACCA127C8EB /* FontAwesome5_Regular.ttf */,
440F1BA068014703ABD5DF57 /* FontAwesome5_Solid.ttf */,
6CF910D8E7CA48F0BFA9A174 /* Foundation.ttf */,
00B0E8D549AC495E984CC5FC /* Ionicons.ttf */,
76625DF2B8D74D86B67011FB /* MaterialCommunityIcons.ttf */,
7D778597146E4F428E1A1944 /* MaterialIcons.ttf */,
09DAB6598CDF4325BE7902C5 /* Octicons.ttf */,
79B09607C7E24CCBBF957F3B /* SimpleLineIcons.ttf */,
C325A7ED44D44D5C917B8268 /* Zocial.ttf */,
);
name = Resources;
sourceTree = "<group>";
path = "";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -1190,7 +1191,7 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods-resources.sh",
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods-resources.sh",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
@ -1227,7 +1228,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods-resources.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeFastImageExampleCocoaPods/Pods-ReactNativeFastImageExampleCocoaPods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
A856D317ED4E937AFEF77AAE /* [CP] Check Pods Manifest.lock */ = {

View File

@ -9,7 +9,7 @@
"dependencies": {
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3",
"react-native-fast-image": "^5.0.11",
"react-native-fast-image": "../react-native-fast-image-1.0.0-development.tgz",
"react-native-image-picker": "^0.27.1",
"react-native-image-progress": "^1.1.1",
"react-native-status-bar-height": "^2.1.0",

View File

@ -6,11 +6,12 @@ import Section from './Section'
import FeatureText from './FeatureText'
import FieldsImage from './images/fields.jpg'
import FieldsBase64 from './images/fields.js'
import FieldsWebP from './images/fields.webp'
import JellyfishImage from './images/jellyfish.gif'
import ImagePicker from 'react-native-image-picker'
import BulletText from './BulletText'
var options = {
const options = {
title: 'Select Avatar',
customButtons: [{ name: 'fb', title: 'Choose Photo from Facebook' }],
storageOptions: {
@ -94,6 +95,13 @@ const Base64 = () => (
</React.Fragment>
)
const WebP = () => (
<React.Fragment>
<BulletText>WebP</BulletText>
<Image source={FieldsWebP} />
</React.Fragment>
)
const LocalImagesExample = ({ onPressReload, bust }) => (
<View>
<Section>
@ -112,6 +120,9 @@ const LocalImagesExample = ({ onPressReload, bust }) => (
<Row>
<Base64 />
</Row>
<Row>
<WebP />
</Row>
<PhotoExample />
</View>
</View>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -4855,10 +4855,9 @@ react-native-drawer-layout@1.3.2:
dependencies:
react-native-dismiss-keyboard "1.0.0"
react-native-fast-image@^5.0.11:
version "5.0.11"
resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-5.0.11.tgz#a8f21864d379e6f566e4f68dd04f2c0f7de0dfec"
integrity sha512-5NNQwRniOfSBAvKldyPEs1xotWxrFcplOSQiVc78dv/EhH4G0IpdrLtsQmBdB91EMtPQfvoT269sKqj5MJCgyA==
react-native-fast-image@../react-native-fast-image-1.0.0-development.tgz:
version "1.0.0-development"
resolved "../react-native-fast-image-1.0.0-development.tgz#725732e73654283d0efb8a24f0d6ef2a926e9374"
react-native-image-picker@^0.27.1:
version "0.27.1"

View File

@ -9,7 +9,7 @@
"dependencies": {
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-fast-image": "../react-native-fast-image-5.1.0.tgz",
"react-native-fast-image": "../react-native-fast-image-1.0.0-development.tgz",
"react-native-image-picker": "^0.27.1",
"react-native-image-progress": "^1.1.1",
"react-native-status-bar-height": "^2.1.0",

View File

@ -6,11 +6,12 @@ import Section from './Section'
import FeatureText from './FeatureText'
import FieldsImage from './images/fields.jpg'
import FieldsBase64 from './images/fields.js'
import FieldsWebP from './images/fields.webp'
import JellyfishImage from './images/jellyfish.gif'
import ImagePicker from 'react-native-image-picker'
import BulletText from './BulletText'
var options = {
const options = {
title: 'Select Avatar',
customButtons: [{ name: 'fb', title: 'Choose Photo from Facebook' }],
storageOptions: {
@ -41,9 +42,10 @@ class PhotoExample extends Component {
response.customButton,
)
} else {
const fileUri = `file://${response.path}`
const uri = response.uri
this.setState({
image: { uri },
image: { uri: uri },
})
}
})
@ -93,6 +95,13 @@ const Base64 = () => (
</React.Fragment>
)
const WebP = () => (
<React.Fragment>
<BulletText>WebP</BulletText>
<Image source={FieldsWebP} />
</React.Fragment>
)
const LocalImagesExample = ({ onPressReload, bust }) => (
<View>
<Section>
@ -111,6 +120,9 @@ const LocalImagesExample = ({ onPressReload, bust }) => (
<Row>
<Base64 />
</Row>
<Row>
<WebP />
</Row>
<PhotoExample />
</View>
</View>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -4977,9 +4977,9 @@ react-native-drawer-layout@1.3.2:
dependencies:
react-native-dismiss-keyboard "1.0.0"
react-native-fast-image@../react-native-fast-image-5.1.0.tgz:
version "5.1.0"
resolved "../react-native-fast-image-5.1.0.tgz#39ed466915a1e4fdd173f10530a9fdbb979cf937"
react-native-fast-image@../react-native-fast-image-1.0.0-development.tgz:
version "1.0.0-development"
resolved "../react-native-fast-image-1.0.0-development.tgz#725732e73654283d0efb8a24f0d6ef2a926e9374"
react-native-image-picker@^0.27.1:
version "0.27.1"

View File

@ -22,5 +22,6 @@ Pod::Spec.new do |s|
s.dependency 'React'
s.dependency 'SDWebImage/Core'
s.dependency 'SDWebImage/GIF'
s.dependency 'SDWebImage/WebP'
s.dependency 'FLAnimatedImage'
end