Questions tagged [create-react-native-app]

194 questions
1
vote
1 answer

Customizing code at build-time in React Native with Create React Native App and Expo

Generally, is there a way to customize the app code during build step? Specifically, there is the typical need to make requests from the application to the local backend ([1], [2], [3], [4]). localhost doesn't work since the server and the app are…
stsloth
  • 1,670
  • 2
  • 18
  • 18
1
vote
1 answer

Conditional Screen in TabNavigator

My router is this. Is there a way where a variable will tell what screen should display? export const HomeNavigator = TabNavigator({ ... Search:{ screen: usertype == 1? Customer : Handyman, }, ... }); export const RootStack…
1
vote
1 answer

Bundle analyzer for create-react-native-app

How to analyze react-native bundle size? App was created using create-react-native-app.
Stanislav Mayorov
  • 4,298
  • 5
  • 21
  • 44
1
vote
1 answer

Expo ImagePicker.launchImageLibraryAsync Missing camera roll permission

i am using create-react-native-app and i am having a problem with permissions in trying to get an image from the camera roll. when i call the method: ImagePicker.launchImageLibraryAsync, i get the error: Missing camera roll permission. import {…
X0r0N
  • 1,816
  • 6
  • 29
  • 50
1
vote
1 answer

Hot reloading with create-react-native app on vagrant

I have used create-react-native-app and expo to build an application on a vagrant ubuntu and run it using yarn start. When i make changes to my file on my host machine, the changes are not reflected. With create-react-app,…
ThierryMichel
  • 487
  • 1
  • 5
  • 20
1
vote
1 answer

how to git clone a project and use create-react-native-app

We have a school project where we forked a class project into our local repository. Let's call that repo gitLocalHomeWork. That repo just has a few files. We are building a react-native application. We can use the create-react-native-app to…
DCR
  • 14,737
  • 12
  • 52
  • 115
1
vote
1 answer

What steps do I have to take to use React-native-Payments with CRNA (project template based on expo)?

I know that react-native-payments is already cross-platform but it does require certain steps like activating apple pay from the ios project and similar changes for Android. I wanted to know if there is a way to integrate payments without having to…
1
vote
1 answer

How to display image with React Native and Expo?

I'm making my first react native project, and I've used the create-react-native-app command to get everything set up. However, when I try to get an image to show up in Expo, it gives me an error message that it can't find the png file. I currently…
David McNamee
  • 403
  • 4
  • 10
1
vote
1 answer

info.plist location on windows for react native using Expo

I used create-react-native-app for creating react native app. My machine is Windows 10 and I use Expo to deploy app on iphone. I can't use http or https with self signed certificate, so I would like to add ATS exception into info.plist. Where should…
rnofenko
  • 9,198
  • 2
  • 46
  • 56
1
vote
1 answer

React Native FlatList: renderItem() goes character-by-character on JSON Array

I'm trying to display elements of a JSON Array through FlatList on React Native. In renderItem(), when I try to access keys for each item, nothing would output. So I tried just rendering each item, and my FlatList displays one character per row.…
1
vote
0 answers

How does react-native-scripts start work?

I am learning react-native with https://github.com/react-community/create-react-native-app. It has an interesting module: react-native-scripts. Can someone explain me how react-native-scripts start work? Looks like it mimics the expo module, or is…
vinhboy
  • 8,542
  • 7
  • 34
  • 44
1
vote
3 answers

npm start not working create-react-native-app

The npm version is 4.6.1 Also refer the github link I created a normal hello world application and tried create-react-native-app HelloWorldVatsal it created the app and loaded all modules etc and gave success message on the terminal After that did…
1
vote
2 answers

React Native: How to make modular components using local image and data assets?

create-react-native-app v1.0.0 react-native-cli 2.0.1 react-native 0.52.0 Android API 25 I have several JSON files in ./src/data (aliased as data) and images in ./src/assets/images (aliased as images). I am making a list of images that are…
1
vote
2 answers

What's the alternative to this missing package (ebay-global-header-node)?

Description I was trying to initiate a sample project $ npm install -g create-react-native-app sample-app It's throwing this error: $ npm install -g create-react-native-app sample-app npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote…
Eduan Lenine
  • 150
  • 1
  • 11
1
vote
1 answer

react native specify device simulator not working

I've created a project with create-react-native-app. When I run xcrun simctl list devices I get the following output: == Devices == -- iOS 11.2 -- iPhone 5s (C6BA18E9-4758-492B-9F54-8BA1D52640C1) (Shutdown) iPhone 6…
user818700