Category "react-native"

in react native im trying to get a svg file from the api but it shows

can anyone tell me how to fixed this issue please,,im trying to get svg images from the api but its not working shows this error... shows this error Error: Expe

Dynamically changing number of columns in React Native Flat List

I have a FlatList where I want to change the number of columns based on orientation. However, I get the red screen when I do this. As per the red screen error m

Axios: chaining multiple API requests

I need to chain a few API requests from the Google Maps API, and I'm trying to do it with Axios. Here is the first request, which is in componentWillMount() a

Execution failed for task ':app:installRelease' react-native

I wanted to create an android apk file in react-native. I followed the instructions as per the link below https://reactnative.dev/docs/signed-apk-android Gene

React Native InitialRouteName

I'm using React Native v5.0 and trying to set a nested navigation for my app, however, the prop "initialRouteName" don't seem to work, even if i set it alone wi

React Native KeyboardAvoidingView covers last text input

I'm using React Native's Keyboard Avoiding View with the behavior set to padding (testing on Android). I have multiple TextInputs on my screen. When I click t

Convert blob to image in React Native?

I have a blob in aws S3: https://s3.us-east-2.amazonaws.com/fakedomain.com/2021-12-23T21%14%05.888Z-blob I'm trying to display it within the card <Card.Cover

Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`

in react-native, I have: Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`. I have a postalCode an

Reset navigation history to Login screen using react navigation

I would like after Login (Welcome) the user to navigate to Home. I reset the history so the user cannot go back like this: const actionToDispatch = NavigationA

Why <TextInput> cannot be focused when inside an absolute positioned parent container <View> in React Native?

I have a TextInput component that is located inside a View with a style setting of position: "absolute": const [searchTerm, setSearchTerm] = useState('Test');

How to create two columns with space beetwen in react native - flatList

Hi i'm new in React Native. I am trying to create two columns layout with space beetween using react native component called flatList. Here is my view Code:

How to solve (Could not initialize class org.codehaus.groovy.reflection.ReflectionCache) issue in react native

$ npx react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 864 file(s)

configure google admob for expo

I am trying to integrate googles Admob service into my expo initialized react native app via the expo-ads-admob package. the package works successfully in the e

how get parent size in child view in react-native?

I cannot understand how can I send parent view's sizes to child component of this. In renderPager() I want calculate some parameters that depend on parent view

Why this.state is undefined in react native?

I am a complete newbie in react native, react.js, and javascript. I am Android developer so would like to give RN a try. Basically, the difference is in onPre

React Native, content going under navigation header, SafeAreaView not working

As you can see in the image below, I have to give some top margin in order to "not" hide my half of the content under the navigation header, isn't header suppos

react-native-router-flux: How to return to previous Scene forcing reload of data?

I'm using a List View class GroupList extends Component { componentWillMount() { this.props.fetchGroups(); I fetch from firebase a VERY SHORT list of e

Alert.alert not working in React native iOS, but perfectly fine in Android

Please check the code , import { Alert, } from 'react-native'; checkForSendingOtp = () => { let hash = 'aBcDeGgd'; Platform.OS === 'android'

How to get current navigation state

I am using React Navigation's Tab Navigator from https://reactnavigation.org/docs/navigators/tab, when I switch between the Tab Screens I don't get any navigati

React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code

I am using a MacBook Pro with M1 chip MacOS Big Sur Xcode Version 13.2.1 node v14.17.5 I wanted to follow this tutorial to set up a new React Native project cal