Questions tagged [react-native-cli]

230 questions
3
votes
2 answers

Why am I receiving a cannot read property `UIAppFonts of null` error when running react-native link?

I am trying to implement custom fonts in a react native application. I am using react native web and can see the custom fonts working on web but not in native. I am working on an Android app but the issues seems to be within the IOS folder which I'm…
mcc
  • 111
  • 10
3
votes
1 answer

Property 'passwordRules' not found on object of type 'UIView *'

Getting these errors on initializing a new react native app: Property 'passwordRules' not found on object of type 'UIView *' Use of undeclared identifier 'UITextInputPasswordRules' Steps to reproduce: > react-native init sampleapp > cd…
Deepak
  • 2,487
  • 3
  • 21
  • 27
3
votes
1 answer

React native run-ios ignoring simulator option

using the following commands my last used simulator iPhone 8 Plus (iOS 13.2) is used. Any thoughts on how to work out why the specified simulator is not launching? npx react-native run-ios --simulator "iPad" npx react-native run-ios…
Edwar
  • 45
  • 2
3
votes
1 answer

Run react-native cli in bazel build

I'm setting up a Bazel build for a React-Native Android project. Since I won't be using Android Studio and Gradle I need to call the react-native cli to create the RN bundle. I've tried several combinations of genrule and nodejs_binary rules as…
Josh Nunez
  • 31
  • 4
3
votes
0 answers

React Native 0.61 still requires me to link native modules

Recently I have upgraded to a version of React Native which is >=0.60. From the release notes I can now see Native modules are "autolinked". So there is no need to use react-native link every time I want to install a library which uses native…
EDJ
  • 843
  • 3
  • 17
  • 37
3
votes
0 answers

React native iOS unable to autolink in yarn workspaces

I created a project with react native 0.60.4 in a monorepo (using yarn workspaces). The project has de following structure: project | |- node_modules |- packages |-react-native-app |- ios |- android |- src I followed…
Thiago Nascimento
  • 1,073
  • 2
  • 13
  • 40
3
votes
1 answer

Listing packages linked with react-native link

I need to be able to see which packages I have linked with react-native link to write some documentation for other devs on my team. I didn't previously document every package I linked because I wanted to test packages before…
AJ Fick
  • 139
  • 1
  • 16
3
votes
3 answers

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. i can not Run my Project

i installed all the things as per official react-native website. but after creating project from terminal when i try to run my project i get an error. i used Xcode 10 and run on latest simulater and also already successfuly installed node and…
raavan199
  • 125
  • 1
  • 1
  • 10
3
votes
1 answer

Unmet peer dependency React Native CLI Init

I am trying to init a new react native project via the React Native CLI. I am on the most recent version (2.0.1) Then, I run the standard React Native Init command and the new project builds with all of these unmet peer dependency warnings: This…
3
votes
0 answers

Cannot launch or install app on ios Simulator , even after build and bundle success

I have been using react-native-cli to create and test app on linux, But recently i switched to mac with High Sierra. I installed Xcode properly and its command line. and every thing as required to run a project on mac. I create a new project using…
3
votes
2 answers

`react-native init app` is not working in React-Native 0.56

React Native 0.56 I have already installed react-native-cli globally, and when I try to create a new project using react-native init myapp , I'm getting an error. This is the error I face. env:- windows 10,node version v10.1.0, npm version…
Aravind Sekar
  • 43
  • 2
  • 5
3
votes
2 answers

react-native run-ios without build

How can I run the application without rebuilding the project (of course the app is installed on the relevant simulator from previous run) I run the application on iOS (for instance) like this: react-native run-ios --simulator='iPhone 8'
gran33
  • 12,421
  • 9
  • 48
  • 76
3
votes
1 answer

Link non-font assets using rnpm

There are plenty of tutorials on including font assets using rnpm. These are the steps: Put fonts in, say, ./assets/fonts Add the following snippet to package.json: "rnpm": { "assets": [ "./assets/fonts", ] } run react-native link. Works…
Andrii Chernenko
  • 9,873
  • 7
  • 71
  • 89
3
votes
1 answer

React Native naming collision error when running packager, caused by "lodash" and "yeoman-generator"

Description In my project I am using "react-native": "0.36.0" and among the dependencies: "lodash": "^4.15.0" "yeoman-generator": "^0.24.1" When using versions higher than "^3.10.1" for "lodash" and "0.21.2" for "yeoman-generator" I get naming…
Andrei Pitea
  • 478
  • 4
  • 9
2
votes
0 answers

Unrecognized font-family '$text-font-family' - React-native CLI - ui-kitten - ios simulator

I am developing my first react-native app using react-native CLI. I have a working setup with android simulator on PC and I just got the simulator working on my Mac using cocoapods and xcode. The issue I am having with the iphone simulation is that…
1 2
3
15 16