Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting vector icons error even though I'm not using <StarRatingView/> #341

Open
rawatnaresh opened this issue Sep 6, 2023 · 3 comments

Comments

@rawatnaresh
Copy link

According to the guide, installing react-native-vector-icons is not required if I'm not using <StarRatingView/>.

But I'm getting an error without it.

I'm not using vector icons in my app and It works as expected after adding react-native-vector-icons.

@hirthbrian
Copy link

You can use this patch-package if you dont want to use <StarRatingView /> and install react-native-vector-icons
react-native-admob-native-ads+0.6.6.patch

diff --git a/node_modules/react-native-admob-native-ads/index.js b/node_modules/react-native-admob-native-ads/index.js
index c16db7f..46494c3 100755
--- a/node_modules/react-native-admob-native-ads/index.js
+++ b/node_modules/react-native-admob-native-ads/index.js
@@ -6,7 +6,7 @@ import AdvertiserView from './src/AdvertiserView'
 import ImageView from './src/ImageView'
 import NativeMediaView from './src/NativeMediaView'
 import StoreView from './src/StoreView'
-import StarRatingView from './src/StarRatingView'
+// import StarRatingView from './src/StarRatingView'
 import PriceView from "./src/PriceView";
 import AdBadge from "./src/AdBadge";
 import NativeAdView from './src';
@@ -35,7 +35,7 @@ export {
   ImageView,
   NativeMediaView,
   StoreView,
-  StarRatingView,
+  // StarRatingView,
   PriceView,
   AdBadge,
   AdOptions,

@okinawaa
Copy link

same issue

@okinawaa
Copy link

@hirthbrian how can use patch version in my project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants