React Native – TextInput text not vertically centered when using NativeWind class `text-base` or other text classes
I have a TextInput
like this:
foundcar is undefined but it is defined right above?
I am trying to load photo dynamically using the route param to parse through a list of brands
to fetch the srcimg, but it says that the foundcar is undefined?
I am farily new to React so any criticism is welcome
const declared undefined in ReactJS
I am looking for a specifc value in an array of key value pairs using the .find method:
Is there a way to render a number of the same component with Flatlist rather than data?
I am trying to render multiple cards within a Flatlist, where the number of cards to be rendered is set in state. I don’t know if there is a way to accomplish this since, to my knowledge, Flatlist only takes an array in its data attribute.
Can a child take as props a function defined in the parent without taking props of the data in the function defined in the parent?
If a child component has props of a function passed from its parent, let’s say function foo, but this function makes a call to another function, let’s say function bar, and bar is only defined in the parent component, would we have to pass bar as props to the child as well?
Import the same component into both Parent and Child components?
Using react we import children components from the parent component. As an example, our parent imports the AWS-SDK package. The child also uses this package. Does the child inherit the AWS-SDK package or do we need to import the same package into the child?
The push notification does not link to the screen
When I launch the application via Expo Go and test the notification, the target screen opens after clicking on it. However, when I build the APK and run it on a physical device, nothing happens when I click on the received notification.
Metro builder not opening In react native
It seems that I have installed all the requiresites for react-native but thr metro builder doesn’t seem to open automatically
How to fix react native dependency versions to correct ones?
The following packages should be updated for best compatibility with the installed expo version:
@shopify/[email protected] – expected version: 1.2.3
[email protected] – expected version: 15.2.0
[email protected] – expected version: 13.8.6
Your project may not work correctly until you install the expected versions of the packages.
How to update border style on click of touchable opacity in react native (using expo)
I am bit new to react native, I am fetching parameters from my previous screen and based on that parameters i’m getting data from API.