Questions tagged [react-android]
102 questions
0
votes
2 answers
How to use asterisk in react native?
How to set label in black color and asterisk (*) in red color.
{I18n.strings("account.nickname")}*
By default label getting black, i need asterisk in red..
Thanks in advance <3

Allen Bert
- 158
- 2
- 5
- 20
0
votes
1 answer
Not able to set data to expandable list in react native
I have an expandable section list in my App and I need to populate values in it from two different api calls. In this link the sample is populated from a local variable. Also I noticed that the data should be like:
const MockData = [
...
…

suja
- 1,198
- 2
- 12
- 32
0
votes
1 answer
create multiple picker(dropdown) in flat list and handle selected state react native
I want to create form in flat list containing picker(Dropdown) for title. suppose there are 3 people the list-view will create form containers and each will have basic info like name, last name and title with picker. I able to create form using flat…

user10384418
- 89
- 1
- 10
0
votes
2 answers
Redux: Is there any smart way to avoid the antipattern of importing store for helper files?
I'm currently build a React Native application using Redux the state management and Firebase Cloud Messaging for my real time communication.
To use FCM in the background on Android you are required to create file called bgMessaging.js.
//…

J. Hesters
- 13,117
- 31
- 133
- 249
0
votes
1 answer
I have made a react native app that uses a search bar but it is not displayed for android
This search bar works just fine for ios and android . Here is the link to the search bar that I am using.
https://github.com/localz/react-native-searchbar
Although it does not show for android but for ios.
0
votes
2 answers
Not able to run on android, while iOS runs fine
I am pretty new to react-native development, I have a project which run properly with iOS simulator, while on android (Emulator and device) it gives Unexpected token '>' error

Dhaval Patel
- 300
- 1
- 11
0
votes
1 answer
android.process.acore has stopped and :app:installdebug FAILED
I was running my react Native application successfully till yesterday. Today, when I tried to start my pixel AP! 23 phone emulator, I got the below error saying "unfortunately the process android.process.acore has stopped". Below is the screen shot.…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
Cordova - Log to file
I need all the logs to be written to a file like we do it in server side programming. I tried using cordova-plugin-logtofile but I'm not able to install it. So I tried directly writing to file like this.
Please see my code.
logger.js
var loggerOb =…

Sreenath
- 480
- 2
- 6
- 17
0
votes
2 answers
displaying multiple lines in flatlist
I am displaying my data in flatlist. I am reading the data from JSON file and rendering it in flatlist. How can I display multiple lines in flatlist. Below is my code:
componentDidCatch
render()
{
return(

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
List view leading to another list view
Does anyone has any example of List View that leads to another listview so for e.g if I have the listview that has following things:
Single Family Home
Mulitplex
Duplex
4 bedroom Home
if someone selects single 4 Bedroom Home, I want the user to…

user54967
- 25
- 2
- 8
0
votes
1 answer
Getting an error saying TypeError undefined is not an object
I am trying to display the data in Listview. First, I am filtering the data (JSON file) based on the selection that user made on the previous screen. I am passing the parameter to the next screen by saying…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
filter json data based on the passed parameter
I have the following JSON file. I want to filter the data based on the foreign key(fk). If I have the parameter passed to my page as 1 then I want the top three rows that has a fk key of 1 and id of 1,2 and 3 filtered out. I want them to be…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
ListView DataSource is not displaying data when put inside state
I am new to React Native. I have the following renderInitialView() in my code. My renderInitialView() function is displaying data in listview if I write this below statement in this renderInitialView function,
this.dataSource =…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
error while binding the ListView
I am getting an error in my render function when I am binding my listView. Below is the code and the screen shot of the error:
My code is below. I am trying to put the search box on top of my list view. Everything was working fine, but as soon as I…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
2 answers
FlatList in React Native does not display any content
I just learned that there is a flatList in React Native. I have a list of services, when the user tap on each service, they are redirected to the address where those services are available. I am trying to display these addresses in FlatList. The…

Anjali
- 2,540
- 7
- 37
- 77