React-native Questions
Ad
I want my text to flow to my next line but flex is not letting me do it?
I want my app to add text underneath the goal section but flex is not letting me do that even if i create new components in native p.s still a
Error when display a version of react-native
When i check a version of react-native the error outputting like this: react-native -v fs.js:114 throw err; ^ error:
Getting "Can't perform a React state update on an unmounted component" when switching between screens
When switching between the home.js and chat.js files, i get this warning: "can't perform a react state update on an unmounted component. this
How to call a function when firebase query doesn't match anything in the database
I'm trying to implement a friend adding system for a react native project. i'm using firebase realtime database. the problem is when i use the
How to pass value to component which I get from another by onClick event
I'm a newbie in react. so sorry) i created my icon component which has svg icons inside: <iconpick icon={'globe'} />
RN - How to get label from Slider?
I want to get the picker's label chosen by the user and store it in this.state.name, i coded the following but the 'value' is being saved instead.
React navgiation AppRegistry is not registered
I have setup a brand new project using react-native init <proj> and it builds fine. i have added react-navigation
How to map through component right?
I'm a newbie and i start to learn react js. so now i have component which has svg icons inside: export default class iconpick
How do I make sure that reducer response action is done before navigating to another page?
I'm currently using redux saga with react native and i have a question on how to properly handle the situation where the reducer action is not
Invariant Violation: Invariant Violation: React.Children.only expected to receive a single React element child. I don't know why?
I keep getting the invariant violation and i really don't know why... <touchablehighlight key={index}
Ad
how to create state array react hooks on declaration
How do i create a state array with react hooks? i am passing a type i used this method but it's showing me lint error. i also want to know it's
How to create a custom UI on the transparent view of react native?
How to create similar user interface like
Test React Native App using Firebase TestLab
Is it possible to test a react native (expo managed) app using firebase testlab? i have not succeeded. several possible routes, none
Accessing Refs in React Functional Component
Im using this package to add credit cards to
How solve react native tls/ssl network error?
I use graphql server(in graphql-yoga library). and i apply the certificate created by the openssl command to the 'https' option.
Navigation error with react native latest version 0.61.4
I upgraded my old project in react native version(0.61.4) then getting error related navigation option undefined. old
How do I put multiple SVGs in one render (React Native)?
I'm new to react native, and i was wondering if there was any way to include two svgs in the same page. so far i've been able to render both of my
How to check if a child component exists on a shallowWrapper
Let's say i have three components const foo = () => (<text> foo </text>) const bar = () => (<text> bar
How to display JSON data in react-native without a list?
I comprehend the development of an application on a react native, i encountered a problem with displaying data. from the server side comes
basic react native app not showing any text only white screen with app name on simulator
I am trying to run simple react native app. just text 'hello world!', it's supposed to be my first app in react native. below is my simple app.js
How to use drawer navigator in react native?
I am trying to implement drawer navigator in my react native application. i have used the opendrawer() function in the component that should open
Ad
Format an array with date objects and show them in a dropdown
I have an api call which returns an array of objects. inside these objects, i have a date / timestamp which is formatted as iso (correct me if i'm
Detect link and return another view in react native
My code: const orderresultjson = [ { key: 'Скачайте приложение по ссылке', value:
Network error on posting a request using axios
When trying to post a http request using axios, i am getting following error: network error -
AutoFocus next TextInput onChangeText Crash
I want to create an otp enter screen with 6 textinput. i want the textinput to autofocus on to the next one as i type the value of the previous
Variable in constructor undefined before render but visible after
I use firebase to call for some user data, and store it in an array. then, when i define the state, i set "notedata" to that array. however, the
Text outside container with Flexbox and React native
With react native and flexbox, i do not understand why the text is outside the container (orange bakcground) ? <view
Redux + React Native Add product to cart not working
I'm new to react native and i'm tryin to implement add to cart functionality using redux, it's working when pass the whole product to the cart,
Custom Icon for Select Drop Down based on value reactjs
I am new to react. i am using ant js library. here,i am using ant js select. here's my
What is a react js the way to learn?
I was a java developer for coding android for 3 years but now i find that learning to react.js brings me one step closer to world-class
React Setting State from another file
I have a function which i'm going to use in a lot of screens and i don't want to copy-paste it in every screen component so i created a new
Auto focus not working on react native formik
I am using formik and
Ad
Is there are proper way to develop Samsung TV (Tizen) app with React?
I need to develop an application for samsung tv and i know it can be developed with tizen studio but i would like to use react. when i build react
Fetching label value of switch in react native
I want to achieve functionality of a checkbox with a switch in react-native, as checkbox isn't
Uploading image to firebase in react native: undefined is not a function
As the title says, i'm trying to upload image to firebase in react native. i'm using react-native-image-picker and
How to pass my image source as a prop to a child component from the parent?
I have made a reusable component that has a title as heading, an image and a onpress function. the image is not rendered or shown. kindly guide me
Is it possible to make chat application like Whatsapp with react-native, firestore and socket.io?
I am going to make a chat application as like as whatsapp with following technologies: react-native ---> front-end
How to unmount inactive screens in bottom tab navigator react-navigation?
Im using react-navigation for react-native. is there an option to make that inactive tab screens get unmounted like unmountinactiveroutes: true in
How do I get react-native-calendar-events working on Android platform React-Native 60+?
I was struggling for a couple of weeks to get the react-native-calendar-events library working on my react native project after it
Change status bar color on iOS and Android in React Native
I'm having some trouble with react native. i have a screen where i need to have a custom header (with icons and more stuff), so in the
createMaterialTopTabNavigator inside a CardView?
How can place creatematerialtoptabnavigator inside a cardview? i want to achieve the design shown in the below screenshot
Function is running asynchronously when it shouldn't
I'm implementing some function in which retrieves some data of type array from firebase, then search for specific element from that array and if
React native error undefined is not a function firebaseConfig
I'm creating a react native project and using the firebase library. i import firebaseconfig from the firebase-config folder and initialize it to a
Ad
How to create a custom textinput with dashed borderbottom for the content?
I want to create a dashed border for the input of my textinput in react-native. like this
error: cannot find symbol class RNFirebaseAdMobPackage
Was anyone able to solve this issue. i have all the dependencies needed and i followed the instructions:
Firebase Rest API Authentication ID Token and Token Refresh in React Native
Firebase official docs says that firebase token id of a user expires in 1 hour . to generate a new token refresh token id is to be passed to an
Firebase child is not being remove, parent is
I'm using react-native and am attempting to remove a child ref, my function is... cancelsleep = ()=> { const rootref =
How to use update promise?
So i have this functions here return db.ref("/data/" + item.id).update({ imageuri: item.imageuri, name:
Pass state from component to Modal?
I have a component and import it in specific screen, in this screen i have a button when clicks i open modal contain component it's a "recorder"
How to Pass Watermelon DB react native from APP to component
Thanks in advance am currently using watermelon db and i have configured it as per the documentation. how to i pass database from
Differents drawer navigator for each user type in React Native
I'm new using react native, and i came across a problem / question. i am implementing an application with two different user types: teacher and
how to properly export component containing multiple classes in react
I'm actually working on a small react app, i actually want to connect my component to firebase, but this component contains multiple classes and
On refresh dropdown data gets changed in react
I have added a dropdown list in my application. it is working as expected but while i am refreshing the page, dropdown data gets changed.but i
Ad
react native call setState within componentDidUpdate error
I've a multiscreen app using react-navigation and passing a prop from camerascreen to homescreen called 'barcode' like so:
How do I stop a view from taking the screen's width and overlapping other components in React Native?
I'm trying to build a react native note posting application where a user will press a button and a new note will be added to the screen. each note
Values are not being passed to a Component - React Native
I'm retrieving data from cloud firestore as an array of objects and i pass the object's values as props to another component:
Is hard coding the Firebase config data into an app a security risk?
As the title says, is it a security risk/concern that i hard code my firebase config data into my (react-native) app? if it's a concern, is there
How to print a list of objects from firebase in react?
I am getting the snapshot from the firebase and setting in the setstate method and the in the render method i just want to print the list. in the
How to make center of barcode scanner transparent?
I am creating a barcode scanner using expo-barcode-scanner i have created the below screen the whole screen is transparent i am
React Native Boilerplate template
I'm a reactjs developer, and i'm learning react native for an upcoming project. with reactjs, there is a great
How To Save Object Of Images To Real-time Firebase
I want to save a bunch of images to firebase storage and it's saved very well "as known image by image " in firebase storage, so after i saved it
problem with display the Range calendar Dates in React js
Hi i am creating rangedate calendar for my requirement.calendar is working perfectly. but when i submitting the dates it will displaying some
React how to show one element at a time in an array automatically
I have an array of items, let's say const item = ['ford','porche','ferrari'] what i would like to do is show
Ad
Customize Theme in Ant Design Mobile React-Native
I'm trying to customize theme in ant design mobile
React Native FlatList not rendering items
<query query={fetch_events}> { ({data, error, loading }) => { if (loading) return null;
react native geolocation does not work because of undefined getCurrentPosition
When trying to retrieve the location of a user, it displays an error: 'cannot read property getcurrentposition' of undefined.
I don't know how to update an entry by it's unique id
![this is how the db looks like
No such Module Firebase
I have a react-native project and i have to link my xcode project with firebase. even though i used cocoapod and
How to invoke a component on handleSubmit in react
I am learning react. i have created a form and on submit i want to render another(info here) component and i am unable to do so.here is my code
listRef.listAll() function is undefined (react-native-firebase)
I am trying to get the list of images in a directory from firebase storage. example i want to get all image in
React-native component not working which loops through and shows increasing value on UI
I am trying to build a component where i am trying to update a view in for loop to render the value on ui, pseudo code of what i am trying
Map state object with array as values
We have the following state in react: state = { thumbnail: [], title: [], } which gets set after we
firebase analytics: find useruid for app_remove
I am using firebase (react-native-firebase if it matters). in the events section of the console, i see that the app_remove event tracks
How do you check/change iOS version in React Native?
I heard that a new version of ios came out the other day, and wanted to know if my react native project would be using that version by default
Ad
How to render two items side by side ReactNative
Lets say i have <listingcard/> components inside of a <scrollview/> . what i want is render those
react-native keyboardDidShow/keyboardDidHide keyboard events not firing
I'm tring to make use of the keyboard events on android by using the keyboarddidshow/keyboarddidhide events but none are firing. am i
React Native Firebase - When to fetch data
I'm just looking for some recomendations on what would be best practise in my scenario. so i have an app that has a private chat function
Efficiently search/exist() Firestore without exhausting free quota
I'm working on a side project and want to let my users check if their friends have accounts. currently i've implemented it like this:
How to render a function inside a FlatList for a specific element in React Native
I have a flatlist component as shown below : i have a section inside the selectablechip component : so, on navigating
Display JSON in React Native
I have this json file in local machine. how to get value experiences>roles>title . project in react native.
How to insert a script between react native tags
I am building a two columns style list (2*x). where it fills buttons from an api. i am trying to add to the second column an if
Stacknavigator not navigating to new screen while using functional component
Here's my app.js import react, {component} from 'react'; import { createappcontainer } from 'react-navigation';
React-Native how to clear inner navigation stack?
I'm new to react-native and am developing an app which has bottom tab navigation.for implementing this , i've used
How to handle data fetching in multiple components in React Native?
I am new to react native. currently, i have multiple components, and each component does several fetches before rendering. the idea that i have
Initialise empty array in an object in JavaScript
Lets say i have var form = { header: { value: null, isvalid: false,
Ad
react-native: How to hide bottom tabbar onPress
I am trying to hide bottomtabbar when i onpress a botton. in my app.js file i have my buttomtabnavigator :
react-native flatlist images flicker when list state updating
I have populated a flatlist with data fetched from google's firebase backend. the implementation is rather standard,
How to make redux-persist blacklist for nested state?
Here is my code for persistconfig and store, i want to add blacklist for tracking, but not for
React Redux <Provider> returning only store object
The getstate(), subscribe(), etc. methods of redux don't come into my component, but only the initial store object comes in props of component.
I want to add CSS for my child class in React Native
An answer is required in react native. <view> <view classname="parent1"> <text>hello with
Cannot read property '#<WebView>' of undefined react native
I'm creating a webview in react-native but when i navigate to any page and try to navigate back app gets close. i have read some answers
Can't iterate child from real-time database firebase?
I'm tried to get a nested child from my db here's a structure
Could not find io.fabric.tools:gradle:1.28.1
I want to install firebase crashlytics on my project but i encounter such a problem when building tried - i can do comment //apply plugin:
useState does not rerender unless I copy the array
In a react-native project i'm using react-native-camera-roll-picker. the idea is that a user selects an image and the header changes
NPM or Yarn? What is the standard practice of starting React Native projects and managing packages?
When starting a new react native project as
Trouble understanding doc().get() in firebase
I am having a bit of trouble understanding why my code is not working. i am trying to read data from firebase inside a react-native project. i can
Ad
com.google.android.gms:play-services-base compile and runtime collision in react native
I have a problem with my react native project. when i trying to build the project (in android, windows 10, android emulator), i facing an error
Updating changed value on user interface
I want my value to change on the screen when button is pressed. it does change the variable value behind the scenes but has no effect for the
Ad
Blog Categories
Ad