Add the Demo for iOS about how to use WebP format for 6.0.0 version #488
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Seems after I create the PR for upgrating the iOS integrate dependency SDWebImage to 5.0.0 via #454, some people find it hard to start how to use WebP format in v6.0.0 version. Like #476
So, I update the current demo. To show how to integrate your exist React Native project, with the 6.0.0 version, to support external image format used by SDWebImage. SDWebImage now support external format beyond the limit of Apple's system library. Check all of available external image format here
This PR change only iOS demo, contains both two cases:
react-native-fast-image-example
, don't use CocoaPods. User who need WebP on iOS, should consider to use Carthage, or manual clone the Git submodule and add the library. This time I use the Git submodule, but it's recommanded to use Carthage instead (another CLI util on iOS development), which is easy to use if you're not familiar to Xcode build settings.react-native-fast-image-example-cocoapods
, use CocoaPods. The most easy way to use WebP. Just add one linepod 'SDWebImageWebPCoder'
I run both of two examples locally and it works.
@DylanVann Maybe we need some wiki or readme, to show how to add new image format support ? Does Android's Glide support external format like iOS's SDWebImage ?