Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

react-native-img-cache.no.js 951B

12345678910111213141516
  1. // XXX The third-party react-native modules react-native-fetch-blob utilizes the
  2. // same HTTP library as react-native i.e. okhttp. Unfortunately, that means that
  3. // the versions of okhttp on which react-native and react-native-fetch-blob
  4. // depend may have incompatible APIs. Such an incompatibility will be made
  5. // apparent at compile time and the developer doing the compilation may choose
  6. // to not compile react-native-fetch-blob's source code.
  7. // XXX The choice between the use of react-native-img-cache could've been done
  8. // at runtime based on whether NativeModules.RNFetchBlob is defined if only
  9. // react-native-fetch-blob would've completely protected itself. At the time of
  10. // this writing its source code appears to be attempting to protect itself from
  11. // missing native binaries but that protection is incomplete and there's a
  12. // TypeError.
  13. import { Image } from 'react-native';
  14. export { Image as CachedImage, undefined as ImageCache };