React-native Questions
Ad
Warning: Failed prop type: Invalid prop `somecomponentfunction` of type `function` supplied to `myComponent`, expected `boolean`
I am facing this warning and am sure its something related to proptypes in my parent component somecomponentfunction and
How does React Native require(moduleName) work?
I saw code like var animated = require('animated') in react-native source code. but how can this be resolved without a path ? my
React Navigation V4: Swipe on drawer does not work in Android
I have been searching for a solution for a long time but in react navigation v4 there is no answer i have created a simple drawer
Add "radius" to bottom side of image
This is design that i want to implement for my mobile application:
render array data gotten from firebase firestore
I am trying to get the data inside my messages array field from firestore, i can see the data in my debugger, but cannot fetch a single part of
Image overrides backgroundColor of elements after upgrade to react-native 0.61.0
I have very strange problem after upgrade react-native library in my app from version 0.59.9 to 0.61.0. the problem occurred only on
Can I use the React Context API inside a Context API or do I have to merge them?
I am just curios about if it would be possible to use the context api inside a context api. like for example i would have a context api for an
React: Passing Child1 state value to Parent and pass back to Child2 from parent
In my app i have two child components, 'foodscreen', 'operationscreen' and a parent component 'desk'. am passing a json variable array to
TypeError: firebase.initializeApp is not a function.(In 'firebase.initializeApp(firebaseConfig)','firebase.initializeApp' is undefined)
When i import firebase on react-native then faces some issues like this.
How to extract "=>" to function model
I am fresher here, trying to start using => for functions and can't quite understand the inner part of a function in this code. it does work,
Ad
React Native Barcode Generator
I'm currently building a react native mobile apps and need to generate a barcode based on some
react native how get variable from reusable component
I want to reuse this component render() { return ( <selectiongroup rendercontent={this.renderbutton}
How to have google maps markers in different colors in React Native?
I want the marker with id: 0 to be red and the marker with id: 1 to be green, but currently both markers are the same
React Native access variable
I want to access to different variables with indexing. first i created them: const refrbsheet0 = useref(); const
groupby and select max id from object in react native
How to groupby and select max id from object in react native. that was just a dummy data to explain you that how my object look
ts error goes away when I use arrow function but come when I not use arrow
Why i get this error message: type '(message?: string | undefined) => void' is not assignable to type '(event:
Desctructure in function props with typescript
I'm trying to run a flatlist with typescript, but it seems to allow only an expression function that has its props destructured. i cant seem to
How to show/hide a button only in one object in an array of object?
I am using an array of objects to loop some services in my webpage. the data is data.js
Updating the state correctly after fetch data from firestore
I am trying to use firestore snapchats to get real time changes on a database. i am using react-native-cli: 2.0.1 and
Stipe, React Native, [Unhandled promise rejection: SyntaxError: JSON Parse error: Unexpected identifier "Error"]
I'm developing an app with expo, firebase cloud function and stripe, for some reason the first time i navigate to the screen
Ad
Using Tab Navigation, bottom notch is the wrong color
I'm using react-native and expo. i'm using tab navigation for some screens and stack navigation for those i don't want to have tabs.
React - how to declare this variable
I have this component that pretends to receive an id of a category of products, make a call to the backend through an api and return the products
React Native Expo Flatlist pull to refresh gesture not triggering on iOS but works fine on Android
I have a flatlist component rendered inside a flex: 1 view, that doesn't perform pull to refresh on ios. the gesture itself doesn't work, as the
This may happen if you return a Component instead of <Component /> from render
I am getting this error functions are not valid as a react child. this may happen if you return a component instead of from render. or
Laravel api with paginate() does not work with reach native
I have a laravel api in which i added ->paginate() so i can paginate, and use it by fetching the laravel api in my react native
Using insecure protocols with repositories build.gradle react native
I'm trying to install this library
Why do I get Failed prop type: Invalid prop `onAnimationFinish` of type `object` supplied to `LottieView`, expected a `funtion`
I am pretty sure am supplying a function to the lottieview component, but am getting the aforementioned console warning error: failed prop
How to scan one barcode per time? [react-native-camera]
Actually i'm new to react and i'm trying to make a simple barcode scanner which show the scanned barcode in an alert and after pressing "ok" in
Filtering objects with null property on Realm for React Native
React native and realm noob here! i want to load objects where one particular property is null. i tried to filter them like
How can I press individual option in actionsheet in React Native?
I am still new to react native. i have an actionsheet with two options and a cancel option. i am having trouble understanding how to make each
Combine arrays into objects depending on elements
I have two arrays, array 1 containing the sections, and array 2 containing the objects, the goal is to insert the objects from array 2 inside the
Ad
React Native/Expo, how to control the splash screen?
I'm using the built in splash screen in expo that you add in app.json for a simple test app. however i noticed that my start screen
How to make screens appear only after installation in react native expo
I have a few welcome screens that should only appear once, when the app is first launched after installation, but i have no idea how. my
How to stop listening for fetching chat messages when users sign out in firebase
I'm building mobile chat application with firebase real-time database and react native. this application is always listening to fetch new chat
React Native import firebase 'auth' and 'firestore'
I'm getting errors when i try to simply load the auth and firestore from firebase. error message: typeerror: (0,
how do i make right to left all app ecept one part?and what's issue that make this part does not show on rtl languege?
I have an app in hebrew that should force rtl layout even for ltr devices (curenty our interface is only in hebrew) using
Not returning FCM token on Digital Signage Device
I'm working on react native project that receiving notifications using firebase cloud messaging service. after i implement the code for the mobile
How to wait for firebase data fetch finishes and get values not a promise in react-native?
I have data in firebase data that looks like the following:
`HMRClient` does not exist in the Haste module map - project fail to run after `npm install`
I have used node 8.x and i upgraded to new node 12.13.0 using brew. i tried to run project
while running npx create-react-app it shows packages are looking for funding
I want to run my first react app i have installed node i have installed react globally using npm install -g create-react-app but
React Navigation 5 , Moving screen to different navigator
Still try to understand about multiple navigator here. basically i have 2 navigator, one rootnavigator for login page, and the
Issue with "TypeError: Class extends value undefined is not a constructor or null" in React Class
I have created a react app through this command npx create-react-app myapp. i want to create a class inside app.js that
Ad
How to get photo id with onPress function?
I need to open touched photo in new screen or modal window, but i can't even get it id with onpress function. photos parsed from unsplash.com.
In react native what should i use instead of componentWillMount
Componentwillmount has been renamed and deprecated, and is not recommended to be used constructor(props) { super(props);
How to pass current route name to other component in 'react-navigation' that is not inside App Container
I have the custom navbar, that is located next to my appcontainer and i want to do some logic based on the current routename of my navigator, how
How to pass Badge Value with Redux to BottomTabBar on React Native
How to change badge value on bottomtabbar using redux ? value badge on bottomtabbar with redux (99+) there i want to change it with value
function execute issue in react native
Dear friends this is my react native according : renderaccordioncontentbasic() { const { selecteditem } = this.state;
Didn't get correct return of AsyncStorage.getItem()
I've try to get value from key in asyncstorage with sync function and try to print on console.log() command the value is correct on my
Query single value from firebase, React Native-Error, undefined
I am trying to query a value from a document in collection, in fire base, particularly "currentkilos":
How upload images to two different path/places in firebase?
How to store a uploaded image to two different path/places in firebase storage? i tried this but it isn't working const {
Problems importing/using RNFirebaseAuthPackage
I am having trouble connecting react-native-firebase into my react-native project. it is installed and firebase has shown me that it is connected,
Get key and value from firebase push notification
I have an react-native app (android) to receive push notification from firebase console.
Ad
Insert into another table with relation
I have two tables 1.table login_user user_id username password 1 noor 1233 2 sara 122334
use for loop in flatlist react native
I'm beginner in react native, and i want to use for loop in flatlist to push require data, render() { return ( <view
Getting images from firebase storage and rendering them with a map function
I current have a folder in my firebase storage that looks like this: enter
Errors to run a React-Native project
I'm started to learn react native, i'm using linux (distro fedora 29), java is already working and running, android studio has been instaled and
Glide image not loading in React Native native UI Component
I am creating a react native native ui component. it is an image gallery that requires loading images from url. in my pageadapter, i
Buttons invisibles on react native
I want to display the 2 buttons in a row above the input field im testing this on a android device and both buttons are invisibles im
React: how to change startup file index.html to other html page in start_url of manifest.json
In react, i need to change the starting page index.html to some other html page (eg: person.html as stating page). i have created person.html page
How to use HoC with React Native
I have an listing app where users can add items for multiple categories, when they want to add new record, there are 3 related screens with this
Firebase App registration empty "storageBucket"
I'm trying to register a javascript project in firebase, i'm getting the add firebase to your web app page with the details, but
Unable to establish connection between Node.JS and React-Native (Socket.IO)
I'm new to react and node and i'm trying to make a simple websocket using socket.io which
Pull to Refresh and setState not working - React Native
React native app i am implementing pull to refresh in my flatlist prop "onrefresh" onrefresh called the function "refreshcontrol()"
Ad
Dynamically change header title on react navigation 5.x
I have recently updated my project to react navigation 5.x. in earlier version we used to set header title as follows : static
How to access state from a component in React - TypeScript?
How can i access my state from the component gamepiecesquares since gamepiecesquares is declared before the state is
Cannot retrive UUID from RNTwilioPhone.calls after CallConnected was fired
I'm developing the react native android mobile apps with outbound calls feature, at the current state, it is able to make an outbound call to pstn
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6
I try to get apk in react-native however it doesn't give me anything. release file which is in apk file is empty and after gradlew bundle release
React native "Execution failed for task: ':app:processDebugManifest' after adding Admob module
Working with a react native project and ready for release but running into this error: execution failed for task
React native image picker is not selecting video from library in iOS 13 or higher
React native image picker with version 0.28.0, react native 0.59.5 and ios version less than 13 was working fine. but after upgrade to ios 13+, it
static props evaluation resulting in exception
I am calling the below somecomponent like following. somecomponent.render is happening fine. but when i call
Can't import react component from another component
I opened a new react native project using expo (boilerplate). i added a new component named 'test' and i cant import it from homescreen.
Flatlist scrollToOffset do not scroll at negative values instead it scroll to the top
I am trying to implement a custom pull to refresh indicator using a flatlist at some point i need the list to scroll at negative position to show
Building Ionic 4 splash screen, didn't do anything (doesn't work)
I am having trouble making splash screen in ionic 4. it doesn't do anything, looking for answers especially in app.component.ts. there is nothing
Getting error after implement 'com.google.firebase:firebase-core:17.0.0' and apply plugin: 'com.google.gms.google-services'
I got an error when try to build my apps after adding implementation 'com.google.firebase:firebase-core:17.0.0' and apply
Ad
I'm going to develop a simple account handling mobile app using React Native, for that what database should i use?
I'm going to develop a rn app for account management with few tables, not complex. what database should i use for that sqlite / firebase / any
Socket IO keeps (re?)connecting, even after establishing a websocket
I'm trying to implement websockets. it manages to make a connection and prints backend, connected! and frontend,
require() resolution in React Native
I'm trying to find out why require('foo/bar.png') works differently in two rn projects in one project, foo is registered as
How to shrink or force equal height between components in row
I'm new to rn, i have trouble dealing with the height priority involve image which i can't seems to find a way to resolve. basically i
How to clean up function in a useffect call?
So i am updating state in a useeffect hook and getting this error i dont how to use cleanup function if we use async/await syntax in a useeffect
How to use react hooks on react-native with react-navigation
This is app.js using react-navigation. there are two screens on it called homescreen and addscreen. import * as react from
React-native android build fails: "...AAPT: error: resource android:attr/fontVariationSettings not found."
I was trying to build an android project on react-native application. everything was working correctly until this morning. it is strange since no
React Native Task :app:processDebugResources Failed to execute aapt
I had no problem building my project in debug. i just installed a new npm package(bugsnag) then did react-native link now i cant build it anymore.
How to scroll to the next page with a button event and not gesture in React Native
I want to slide to the next page by a button event instead of scrolling with a gesture. what i mean by that is, if i were to press the button
Iterate in array extract and add to new list if object value is true in javascript
I have an array like below and i want to extract objects and sub-array and create a new array if the selected object value is true
React-navigation + react-native-web for web project, how to navigate to correct screen using url
I'm trying to use react-navigation and react-native-web as described in
Ad
react-native start giving Invalid regular expression invalid error
I followed following link to get started with react-native
firebase react-native: convert anonymous user to a permanent user via phone auth
My react-native application allows users to sign in anonymously using firebase. after that i am hoping to allow user to create an account via
App Crash while using React-Native-Contacts
My app is crashing while using any method of react-native-contacts. function getphonerecords() {
Unable to change value in input onChange in React JS
Following is a sample code to handle change in input values import react, { usestate } from 'react' function myname () {
"resource android:attr/fontVariationSettings not found." in react-native
I have a react-native project and it works ok yesterday for android, but error happens today when i run react-native run-android.
Is there a way to enable live reloading and hot reloading in android physical device for react native development?
I am finding a way of enabling live reloading and hot reloading in android physical device for react native development?
Process 'command 'node'' finished with non-zero exit value 1 linux whien generating signed apk
Process 'command 'node'' finished with non-zero exit value 1 in android studio 3.4 using ubuntu 16.04 when i generating
Could not find androidx.appcompat:appcompat:28.0.0
I updated compilesdkversion from 27 to 28. added in gradle.properties file:
Build failed with an exception react native
While running react-native run-android i am getting below exception... it was running fine and i made a git pull and did npm ci and
Why Android Studio is forcing to use Androidx from Android support library?
Working on a react native project but out of sudden it stopped working & started giving an error: manifest merger failed :
react native compile error android - react-native-webview
I was compiling with no errors and literally this showed up out of no where. has anyone else had this error? task
Ad
How to fix Execution failed for task ':app:processDebugManifest' in React Native?
I find an error when run the project, i try to look for many examples but fail all, this is the detail of error:
unable set my background image in react native?
I am new to react native, while learning from native docs , i got stuck by imagebackground usage. my code is given below , help will be
Ad
Blog Categories
Ad