react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

feat(images): Adding iOS Image Cache Limits

Open gedeagas opened this issue 3 years ago • 3 comments

By default React Native would set NSCache.totalCostLimit to 20MB and the single image size limit to 2MB (bitmap size). The default cache size may not be enough for applications that make heavy use of images.

But thanks to this commit now you can configure the image cache size on iOS by adding RCTSetImageCacheLimits in your app App Delegate.

This feature should be available from v0.69.0-rc.0

gedeagas avatar Aug 11 '22 09:08 gedeagas

PR Reference https://github.com/facebook/react-native/pull/33554

gedeagas avatar Aug 11 '22 09:08 gedeagas

Deploy Preview for react-native ready!

Name Link
Latest commit 766a41a35e907f82188c7a98c8179c7e343bab8f
Latest deploy log https://app.netlify.com/sites/react-native/deploys/62fd9d43e38bea00088e21ba
Deploy Preview https://deploy-preview-3258--react-native.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Aug 11 '22 09:08 netlify[bot]

@Simek since this method is already available since v0.69.0-rc.0 should i also edit the versioned docs?

gedeagas avatar Aug 11 '22 09:08 gedeagas

@huntie updated the docs, please kindly check. thank you

gedeagas avatar Aug 17 '22 07:08 gedeagas

Updated @Simek, please kindly check again. Thank you.

gedeagas avatar Aug 18 '22 02:08 gedeagas

Oke thank you @Simek.

gedeagas avatar Aug 18 '22 08:08 gedeagas