question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Metro from RN 0.60.0 warns that rnpm config is deprecated and will stop working in the next release

See original GitHub issue

This shows up when running the Metro Bundler from React Native v0.60.0:

warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-vector-icons: https://github.com/oblador/react-native-vector-icons

See https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:10

github_iconTop GitHub Comments

169reactions
immortalxcommented, Jul 5, 2019

This worked for me on a upgraded project and on a brand new RN 0.60.0

Remove the rnpm line from package.json

For IOS add this to ios/projectname/Info.plist

	<key>UIAppFonts</key>
	<array>
		<string>AntDesign.ttf</string>
		<string>Entypo.ttf</string>
		<string>EvilIcons.ttf</string>
		<string>Feather.ttf</string>
		<string>FontAwesome.ttf</string>
		<string>FontAwesome5_Brands.ttf</string>
		<string>FontAwesome5_Regular.ttf</string>
		<string>FontAwesome5_Solid.ttf</string>
		<string>Foundation.ttf</string>
		<string>Ionicons.ttf</string>
		<string>MaterialCommunityIcons.ttf</string>
		<string>MaterialIcons.ttf</string>
		<string>Octicons.ttf</string>
		<string>SimpleLineIcons.ttf</string>
		<string>Zocial.ttf</string>
	</array>

For Android add this line to android/app/build.gradle

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
20reactions
dannydanzkacommented, Jul 9, 2019

Hello community!

I just solved this problem in RN 0.60 for the moment in Android, there are a series of steps that should be followed, the annex.

Update the dependency to the last update so far:

  • In the package.are copy this “react-native-vector-icons”: “^ 6.6.0”
  • run “npm install --save react-native-vector-icons

It is important the “–save” in this new version of react-native since for some reason when running the “npx jetify” command it finds it that way

-If they do not have the jetify install it is necessary, “npm i jetifier

  • Clean the caches to make sure, run “cd android && ./gradlew clean
  • If gradlew throws them an error, it’s because they do not have permissions “chmod 755 gradlew
  • Copy the following code to the end of the file, “android/app/ build.gradle

project.ext.vectoricons = [ iconFontNames: [ ‘FontAwesome.ttf’, ‘FontAwesome5.ttf’ ] // Name of the font files you want to copy ]

apply from: “…/…/node_modules/react-native-vector-icons/fonts.gradle”

  • open a terminal and run “react-native start”, for some reason this new version does not automatically open the node server.
  • run “react-native run-android

I hope it serves you. Greetings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The following packages use deprecated "rnpm" config that will ...
To help the next one that has this problem. Run the command below to remove the package with "rnpm": yarn remove react-native-update-gradle.
Read more >
Versions · React Native
React Native versions. Open source React Native releases follow a release train that is coordinated on GitHub through the react-native-releases repository.
Read more >
execution failed for task ':react-native-gesture-handler ...
Next. Answered on Jul 8, 2019. It cause this error for the RN 0.60 . You can solve this by following,. npm i...
Read more >
react-native | Yarn - Package Manager
Learn once, write anywhere: Build mobile apps with React. React Native is released under the MIT license. Current CircleCI build status. Current npm...
Read more >
react-native-screens - npm
Native navigation primitives for your React Native app.. Latest version: 3.18.2, last published: 2 months ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found