ignite: Boilerplate broken when including dev screens

Hi there,

I’m facing a problem with the latest CLI 2.0.0-rc.1. I cannot run the boilerplate with dev screens. I keep getting the following error on both iOS and Android:

undefined is not an object (evaluating 'RNDeviceInfo.systemManufacturer')

It only occurs when including dev screen.

Any suggestions?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Verified the temporary fix from @skellock works. To test, ignite a new project. In the series of prompts presented as you ignite your new project, select ‘Yes’ when prompted Would you like Ignite Development Screens? and answer ‘none’ when prompted for What vector icon library will you use?, What internationalization library will you use? and What animation library will you use?. Then follow @skellock’s instructions to manually add the dependencies your project needs for react-native-device-info. Issues with the vector icon, internationalization and animation libraries will be fixed ASAP.

Same error in 2.1.1. My package.json has the dependency. react-native link react-native-device-info fixed it.

Looks like the dependency is missing from https://github.com/infinitered/ignite-dev-screens/blob/master/plugin.js#L25 for react-native-device-info.

Short term fix in your current project.

npm i --save react-native-device-info
react-native link react-native-device-info

Until we get this patched up.