diff --git a/react-native-fast-image-example-cocoapods/src/withCacheBust.js b/react-native-fast-image-example-cocoapods/src/withCacheBust.js index 172076b..64b4376 100644 --- a/react-native-fast-image-example-cocoapods/src/withCacheBust.js +++ b/react-native-fast-image-example-cocoapods/src/withCacheBust.js @@ -22,7 +22,8 @@ export default BaseComponent => { } } - WithCacheBust.displayName = `withCacheBust${BaseComponent.displayName}` + WithCacheBust.displayName = `withCacheBust(${BaseComponent.displayName || + BaseComponent.name})` return WithCacheBust } diff --git a/react-native-fast-image-example/src/withCacheBust.js b/react-native-fast-image-example/src/withCacheBust.js index 172076b..64b4376 100644 --- a/react-native-fast-image-example/src/withCacheBust.js +++ b/react-native-fast-image-example/src/withCacheBust.js @@ -22,7 +22,8 @@ export default BaseComponent => { } } - WithCacheBust.displayName = `withCacheBust${BaseComponent.displayName}` + WithCacheBust.displayName = `withCacheBust(${BaseComponent.displayName || + BaseComponent.name})` return WithCacheBust }