I was able to add webp support to my own application using the related article and repo
yarn add TGPSKI/react-native-webp-support- Open your project in Xcode
- Add
WebP.framework and WebPDemux.framework from node_modules / react-native-webp-support / to your project files (right-click your project and select "Add Files To ...") - Add
WebP.framework and WebPDemux.framework to your related frameworks and libraries on the General tab of your main project goal. - Add "$ (SRCROOT) /../ node_modules / react-native-webp-support" to your Framework search paths located on the Build Settings tab of your main project goal.
- Add $ (SRCROOT) /../ node_modules / react-native-webp-support to your header search paths located on the Build Settings tab of your main project goal
- Add
ReactNativeWebp.xcodeproj from node_modules / react-native-webp-support / to your project files (right-click your project and select "Add Files To ...") - Add
libReactNatveWebp.a to libReactNatveWebp.a Link Binary with Libraries, located on the Build Phases tab of your main project goal. - Create a new binary file and use .webp images
https://medium.com/@tgpski/react-native-webp-reducing-bundle-binary-sizes-increase-speed-with-webp-image-format-aa9b1aa11405
https://github.com/TGPSKI/react-native-webp-support
source share