tagged [react-native]

Unable to load script from assets index.android.bundle on windows

Unable to load script from assets index.android.bundle on windows I'm trying to run my first React Native project for first time on my device (Android 4.2.2). And I get: > unable to load script from a...

22 Aug at 18:27

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65 I've build a react-native application and suddenly I get this error message on my terminal during run of...

19 Mar at 07:46

How to add icons to React Native app

How to add icons to React Native app I am making a React Native app. I would like to customize the app icon (meaning the icon that you click on to start the app). I have Googled this, but I keep findi...

6 Oct at 15:37

React-Native another VirtualizedList-backed container

React-Native another VirtualizedList-backed container After upgrading to react-native 0.61 i get a lot of warnings like that: What is the other `VirtualizedList-backed container` that i should use, an...

4 Oct at 22:12

How do you style a TextInput in react native for password input

How do you style a TextInput in react native for password input I have a TextInput. Instead of showing the actual text entered, when the user enters text I want it to show the password dots / asterisk...

30 May at 03:55

Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler I've setup the environment for react native on Windows. But when I run the command I get the following errors - ``` * ...

24 Oct at 18:14

How do you format a number to currency when using React native Expo?

How do you format a number to currency when using React native Expo? How do I take a number like `10000` and have it output as `$10,000.00`? I even had a problem with `String.format(...)` with a `Not ...

6 Dec at 03:3

react-native run-android is unrecognized

react-native run-android is unrecognized I've installed react-native-cli globally: Then run: I got the following structure: When I run I get an error: `run-android` When I run react-native star...

15 Sep at 09:41

React Native: How to select the next TextInput after pressing the "next" keyboard button?

React Native: How to select the next TextInput after pressing the "next" keyboard button? I defined two TextInput fields as follows:

23 Sep at 20:17

How can I run background tasks in React Native?

How can I run background tasks in React Native? I've built a [little iOS app](http://github.com/liamzebedee/tomtrack) in React Native that does location tracking, sending the lat/lng regularly to a se...

18 May at 21:27

React Native absolute positioning horizontal centre

React Native absolute positioning horizontal centre It seems that with `position:absolute` in use an element cannot be centred using `justifyContent` or `alignItems`. There's a workaround to use `marg...

React native ERROR Packager can't listen on port 8081

React native ERROR Packager can't listen on port 8081 When I run command `react-native start`, it shows `Packager can't listen on port 8081`. I know the issue is about software using my port 8081 . I ...

30 Oct at 18:9

Generate SHA-1 for Flutter/React-Native/Android-Native app

Generate SHA-1 for Flutter/React-Native/Android-Native app I'm trying to generate a SHA-1 for a Flutter app, for Android studio to support Google Sign in, but I don't know how to do that, I saw some p...

27 Feb at 15:55

How do I display an animated gif in React Native?

How do I display an animated gif in React Native? How can I display an animated gif in react native. This is what I've tried. It works fine with a `.png` file but when I use a `.gif` file it's blank. ...

2 May at 07:44

Maintain aspect ratio of image with full width in React Native

Maintain aspect ratio of image with full width in React Native I have a query regarding tag. I want an image to take entire width of parent which I do using alignSelf:stretch, but I also want the heig...

15 Apr at 06:7

Can I make dynamic styles in React Native?

Can I make dynamic styles in React Native? Say I have a component with a render like this: Where jewelStyle = How could I make the background colour dynamic and randomly assigned? I've tried ``` { b...

22 Feb at 10:59

How can I insert a line break into a <Text> component in React Native?

How can I insert a line break into a component in React Native? I want to insert a new line (like \r\n, ) in a Text component in React Native. If I have: Then React Native renders `Hi~ this is a test ...

26 Oct at 09:0

Hide scrollbar in FlatList (React Native) in Android

Hide scrollbar in FlatList (React Native) in Android I am trying to use FlatList (React-native) in my app. I am using it horizontally and can see the scrollbar. There is an option in ScrollView to hid...

23 May at 12:18

Disable back button in react navigation

Disable back button in react navigation I'm using react native navigation (react-navigation) StackNavigator. it starts from the Login page throughout the whole lifecycle of the app. I don't want to ha...

React Native add bold or italics to single words in <Text> field

React Native add bold or italics to single words in field How do I make a single word in a Text field bold or italics? Kind of like this: If I create a new text field for the bold character it will se...

18 Apr at 08:49

NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll

NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll Recently I started to get this error: > NSPhotoLibraryUsageDescription key must be present in Info.plist to use cam...

18 Nov at 10:42

React-Native, Scroll View Not Scrolling

React-Native, Scroll View Not Scrolling When I wrap content like this example below, it scrolls Perfectly.. However, whenever I wrap it in another View, It will not scroll. ``` return(

11 Oct at 13:40

Render HTML in React Native

Render HTML in React Native In my React Native app, I am pulling in JSON data that has raw HTML elements like this: `This is some text. Let&#8217;s figure out...` I've added the data to a view in my a...

8 Apr at 20:27

React Native: View onPress does not work

React Native: View onPress does not work I'm facing a weird problem. In my react native app, if I set `onPress` event to `View` it is not triggered but if I set the same to `Text` inside `View`, it fi...

27 Apr at 18:14

React Native fetch() Network Request Failed

React Native fetch() Network Request Failed When I create a brand new project using `react-native init` (RN version 0.29.1) and put a fetch in the render method to the public facebook demo movie API, ...

20 Aug at 23:39