Questions tagged [react-native]

React Native lets you build native mobile apps using React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.

0
votes
0answers
4 views

Module RCTEventEmitter is not a registered callable module( calling receive Touches)

I'm using the emulator from android studio to run my react-native app, however I can't run it successfully on the emulator. The error above keeps pop up every time I hot loading the app. The app ...
0
votes
0answers
5 views

How to append data to view based on parent id after Main data load?

First I load data from API to FlatList. once data load, I need to append 3 data to every each main data based on their id. For example, I have list of users details. every users have multiple photos. ...
0
votes
2answers
16 views

Remove the particular item from the array - react native

How can I remove the particular item from the array loop if the condition matches? array.map(item => { item.id === companyId ? //how to remove this item from the array?? } : null) ...
1
vote
2answers
14 views

How to perform click function on item of a Flatlist in React Native

I am getting list of data and i want to display detail of each data when click on any item of flat list here is my code. <FlatList style={{paddingBottom:5}} data = {this.state....
0
votes
0answers
10 views

Firestore, fetch only those documents from a collection which are not present in client cache

I am implementing a one-to-one chat app using firestore in which there is a collection named chat such that each document of a collection is a different thread. When the user opens the app, the ...
0
votes
0answers
11 views

React-native release apk refuses to install

I have encounter a problem I am unable to solve, I have followed all steps from: Unable to install signed apk from React Native but the ones in Android Studio since I am not using it and the steps ...
0
votes
0answers
11 views

Settimer is calling only once after delay, But, It is not repeatedly calling in React Native

I have to call some API for every 10 minutes in my react native application. So, I have defined timer in ComponentDidMount method along with Setinterval, But, It is calling only once, It is not ...
0
votes
0answers
11 views

Open deeplink on iOS in react native app. Can we open Deeplink URL in self-app on iOS?

Can we open Deeplink URL in self-app on iOS? I am buiding react native app on iOS with DeepLink. I create deeplink formatted: myapp://people. And it is OK, I can open from browser with this url and ...
0
votes
2answers
33 views

Custom shape for border radius image in React-Native

I want to reproduce that style in my component (the border bottom). I am basically loading a rectangular image, then I want to rounded it at the bottom. I think about : border-bottom-right-radius ...
2
votes
2answers
41 views

How to put objects in an array into new array sorting by date?

I want to use SectionList in React Native. Datas that SectionList needs to render looks like this: sections=[ { date: 'May 24 2019', data: [ { id:1, msg: 'msg1', ...
0
votes
0answers
10 views

React Native, storing images in users gallery without compression

I am developing an App that verifies images based on their hash. I hash the images using this library "react-native-fetch-blob". I store all the images taken inside the app, I am trying to allow ...
0
votes
0answers
11 views

Test execution of functions like from component did mount and component will receive props

I am trying to test a component where componentWillReceiveProps is calling Animated.parallel. I am unaware as to how go about testing the execution of this function using jest. I have tried using ...
1
vote
0answers
15 views

How can I make a minute-interval timer in react-native without interrupting the rest of the code

I need some help with logic for timer system Summary of my case: I work as a filling manager at a store, the employees have to fill the shelves after closing time. All of our goods are delivered on ...
0
votes
1answer
20 views

Styled-jsx React native

I am trying to implement styled-jsx in React native project. I am following this tutorial : https://github.com/zeit/styled-jsx I have added this code : .babelrc : { "presets": [ "@babel/...
0
votes
2answers
18 views

FlatList and page scroll problem, how to fix?

I have a problem with the homepage with my React Native mobile app. When I try to scroll the homepage, all the page doesn't scroll but the FlatList scroll but in his container and not all the page. ...
0
votes
0answers
7 views

How do I implement deep linking for password recovery in my RoR and React-Native App?

This RoR and React-Native app needs deep linking implemented for password recovery(among other things). How can I provide a link in the email that opens the app instead of the browser? So far I'm ...
0
votes
0answers
19 views

React Native - Not getting response of a API(response size is large around 600KB) when application running on mobile

I have a API which is called in my react native application. This API is a has request method as GET. Also gzip(compression) is enabled on the server on which this API is hosted. The response size of ...
0
votes
0answers
21 views

How to set a timer in the Map function?

I'm retrieving device info from a peripheral list using the Map function but I would like to set a timer in which there is a time gap in which I disconnect and move to the next Device. { Object....
0
votes
2answers
9 views

KeyboardAvoidingView AdjustResize not work in Android

I want the Next button not to cover the keyboard when I see it. When I used KeyboardAvoidingView, IOS worked normally. But it works like AdjustPan on Android. The manifest is set to AdjustResize. How ...
0
votes
1answer
20 views

How to display multiline notification on react native android?

I have create a notification like this: const notification = new firebase.notifications.Notification() .setNotificationId('1') .setTitle('Reminder') .setBody('...
0
votes
0answers
7 views

Nested tab navigators don't work inside drawer navigator

I'm trying to embed tab navigators within a drawer navigator, but the drawer navigator sometimes stops working. Code: https://github.com/myplaceonline/testreactexpo/tree/drawernestedtabs To reproduce ...
0
votes
0answers
8 views

How to require images with variable without loading all asset images first?

I am new in react native. So, in my application user can upload item with images. The images is stored locally in device local storage and data of item is stored locally using SQLite. The problem is ...
0
votes
0answers
15 views

Expo dependencies in other libraries after ejection

First of all, I removed all imports from expo. Then I ran the expo eject command. The output: The output of expo eject command I chose the first option. Then I ran the app and got error for @expo/...
0
votes
1answer
13 views

React Native: Warning: Failed prop type: AutoHeightWebView: prop type `source` is invalid;

I ran a test on one of my screens named Details screen: export class Details extends Component { static propTypes = { auth: PropTypes.object, checkingUserMembership: PropTypes.bool, ...
0
votes
0answers
24 views

Hyperlinks are not clicked on HTML code in React native app

In my React native app I have installed this component to load full HTML from JSON posts from a Wordpress backend. After installing this component, the hyperlinks are shown as hyperlinks but there ...
0
votes
0answers
16 views

Share Images and text using whatsapp in react native

I'm using react native 0.59 to develop my application. I've tried both "Share" functions from react native core library and react-native-share. But the problem is sharing text and base64 image with ...
0
votes
0answers
14 views

How to fix “No 'routes' found in navigation state” when I use tab navigator inside drawer

I want to use tab navigator inside drawer. But when I navigate from login page to drawer it have an error "No routes found in navigation state". I use react-native 0.59.8, react-navigation: 3.11.0. ...
0
votes
0answers
17 views

React Native iOS release build crashing on some devices

I have a React Native app that is on TestFlight, it opens for some users but other users it crashes when trying to open. Even identical devices, one launches successfully and on the other the app ...
0
votes
2answers
19 views

React Native TypeError: undefined is not an object (evaluating '_ref.item')

I'm trying to do an Instagram clone, but when using a FlatList I'm getting this error: Error: TypeError: undefined is not an object (evaluating '_ref.item') I followed this tutorial on youtube and ...
0
votes
0answers
55 views

React Native: Why isn't my child component receiving props?

I have been working for 2 days now on this problem and I am going to walk through this via my understanding of props. So I have a React Native project with a parent component called Details: import ...
-2
votes
0answers
8 views

React Native Sticky Header

Looking to see how or if anyone knows how the GuzmenyGomez app did there sticky header which can also reveal the barcode. (https://d2f5m8a9r6r9md.cloudfront.net/wp-content/uploads/products/sites/6/...
0
votes
0answers
17 views

How to pass information when an item in a sectionlist is clicked about that item

I'm currently building an application where I give a general list of jobs. When one of these jobs is touched/clicked, it needs to go to a new view with details about that job. What I'm trying to do is ...
0
votes
1answer
13 views

local storage variables are reinitialized when i quit the application

what i want to do is to show a dialog box when i open the app,but i want to condition this display to a variable stored in my app local storage. this variable get initialized when i click on a button. ...
1
vote
0answers
7 views

I have a problem in my code when updating react-navigation v2 to v3

I want to update the react-navigation library V2 to V3 and change part of my code thinking that there would not be any problems but it turns out that I have problems creating createStackNavigator with ...
0
votes
1answer
26 views

Toggle button is in off state though the value of it is true

I have a switch in one of the many tabs such as Help, About etc. as shown below: As you can see, the value of it is set programmatically based on a state variable in componentDidMount(). But the ...
-4
votes
0answers
23 views

is there anyway to launching an App when we connect charger to a mobile phone [on hold]

i want to code for launching an App when we connect charger to a mobile phone i have gone through android logic... but i got stuck on this Auto start an app when charging
0
votes
0answers
9 views

Can run IOS emulator bu project is not present

I've unfortunately deleted my react native project with xcode may it be .xcworkspace or .xcodeproj. So in order to get my project back with .xcodeproj, I had to rename my project eject and update ...
0
votes
2answers
20 views

How to transfer a “link” to another component?

When I click on that touchable opacity I want to move to another component, fetch a "link" from API and transfer it to that other component. Can you give me some tips how to do this? ...
0
votes
1answer
12 views

How to render images with React-Native-FS

In my Android react-native app I'm moving jpg files from cache folder to RNFS.DocumentDirectoryPath where I've created an "image" folder. I'm not able to render those images: inside a react class: ...
0
votes
0answers
13 views

Weird antialias artefacting with react native on nested posed components

I am creating a component that animates a group of buttons in an elastic staggered way using react-native-pose. The buttons them selves use pose to animate the pressed state. I have almost got it ...
0
votes
1answer
12 views

What is the correct value for a `defaultProp` that corresponds to a `PropTypes.element`?

I have a component that I wish to accept another component as a prop, and render that. I wish for that passed component to be optional, and render nothing in that case. The following code works ...
0
votes
0answers
10 views

React Native List View Memory Usage is crazy high

I am loading an array of data points from a server. About 1 second in between updates. Small data sets just a few lines of JSON. When the FlatList loads then it looks like its just retaining all ...
0
votes
0answers
11 views

onPress in custom component does not autoClose <Swipeout> react-native-swipeout

I'm trying to use react-native-swipeout to have a 'delete' button shown only when swiped. The delete action will use graphql mutation (react-apollo) First, I use component inside the component in ...
0
votes
0answers
7 views

Http request are still not allowed after enabling it with networkSecurityConfig

I am trying to make a http request to a device which creates its own wifi hotspot and which allows only http requests. With android 8 and lower http request are successful but with android 9 they are ...
0
votes
0answers
21 views

ApolloClient from apollo-boost attemped to assign to readonly property

I'm working with react-native, and trying to load Apollo from apollo-boost. When I attempt to import the client, I get the error message "Attempted to assign to readonly property." I'm not sure how ...
0
votes
0answers
20 views

Convert request to Nodejs in fetch to React-native

I need to convert the following request, which is the following code for react-native: Nodejs: const request = require('request'); var areaRiservata = { url: "https://www.iliad.it/account/", ...
0
votes
0answers
10 views

xcode build failing when creating main.jsbundle

I am running xcodebuild archive to create app file of my iOS React Native project. + node /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/node_modules/react-native/local-cli/cli.js ...
0
votes
0answers
12 views

How can i delete message on click of bubble touch? React Native Gifted chat library

I have developed chat view in React Native using gifted chat lib. But i want to perform delete action on click of chat bubble. I have try custom renderCustomView ,lightboxProps and onLongPress ...
0
votes
0answers
19 views

Fetching Firebase Realtime Database of array

I want to fetch multiple specified Childs. Is it possible to do so in one fetch? I have tried to do this with orderByChild and equalTo My Data Structure: "lections" : [ { "id" : 1, "title" ...
0
votes
0answers
14 views

incompatible receiver map required

While using Google Place Autosuggest in LocationInputScreen component, I am constantly getting Red-Screen with this error. I strongly guess it is related to android. I was earlier getting this error ...

http://mssss.yulina-kosm.ru