Category "react-native"

request I made to the database server in the apk of my React native android application does not work

in my react-native app, I created a server with express js to connect to the database. And I created api to get data from database. This api works successfully

how to change useState's state without render in functional component

how to change useState's state without render in functional component const [imageId, setimageId] = useState(0); const Slide = () => { re

Is it possible to generate .xcframework and .aar files using expo-cli or native cli?

I am planning to build a skeleton in React Native that splits out .xcframework and .aar files which could then be used in the native android and ios projects. I

TypeError: ‘undefined’ is not an object (evaluating)

I'm started react-native tutorial on youtube, and I get error this one. TypeError: ‘undefined’ is not an object This is File it is showing from:

How do I change this React Navigation v5 code to v6?

I'm studying react native and discovered that tabBarOptions was already deprecated. I know that including it in screenOptions is the new way but how do I do thi

How can i change Header Bar height in react native?

i'm trying to change Header Bar height in React-Native Stack Navigator this is my code I tried to put headerStyle: height:'100', but it doen't work what should

How to reduce the number of requests in React Navigation TopTabNavigator using expo?

i'm pretty new on React Native and currently i am developing an app using expo. I am using TopTabNavigator from react navigation 6 and i don't understand how to

React-native spotify api call returning [Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'data.items.name.map')]

Hey so I'm working on a react-native app that is using the spotify Api. I'm currently trying to call the endpoint which returns a users playlists. The way I wan

Mobx observable only get updated if i log it

I have a hook that uses an observable which is a map - peripheralStore.connectedDevices. this map consists with values which are also observables - Sensor The h

The development server returns response error code: 500 - react-native-lyric

For one of my React Native projects, I'm using react-native-lrc. This is a package that can be used to play .lrc files (audio lyrics files). Following is my App

How to perfectly align different size text in react native

i want to align three text views with different text sizes perfectly to left side, text is now aligned left without any issues but if i use a different text siz

fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported

while pod install am facing issue like [!] Error installing DoubleConversion [!] /usr/bin/git clone https://github.com/google/double-conversion.git /var/folder

Prevent rerender flatlist React Native

I have custom created calendar using Flatlist. In the parent component I have a state with starting date and ending date and Press handler function to update st

react-native-testing-library with typescript does not work

I've tried for days many ways to set up @testing-library/react-native with typescript following a sort of guides but still not able to render a simple component

Accept confirm in Webview React Native

I've a React Native app (with expo) that has a Webview that I used with injectedJavascript to go through a login an do some stuff. The thing is in one part, the

The KeyboardAvoidingView is not behaving the way I want it to

So the code for my login screen is import { StyleSheet, Text, View, StatusBar, SafeAreaView, TextInput, ImageBackground, KeyboardAvoidingView, }

React Native Linking to open Outlook on Inbox screen?

In React Native I can open the Outlook mail client with this (You also need to add ms-outlook to the Info.plist): function openMailClient() { Linking.openURL(

Huawei IAP React Native

I am integrating Huawei in app payment module in my react native application, I have followed all the guidelines for setup. Every thing is going smooth but when

Objects are not valid as a React child (found: [object Error]). If you meant to render a collection of children, use an array instead.]

i think the error is from the checkout screen but i just cant find the '<' which is make believe that the error origin is from node_modules can anyone find t

How to execute onPress on TouchableOpacity react-native using jest and @testing-library/react-native?

I have a component called Header that look like this: import React from 'react' import {StyleSheet, TouchableOpacity, View, StyleProp, ViewStyle} from 'react-na