problem while in apk file map not working in react native
import MapView, { AnimatedRegion, Animated, MarkerAnimated,Marker } from “react-native-maps”; import MapViewDirections from ‘react-native-maps-directions’; <Animated style={styles.map} region={mapRegion} > {dropLocation.latitude != 0 && dropLocation.latitude ? (<MapViewDirections origin={pickupLocation} destination={dropLocation} apikey={map_key} strokeWidth={5} strokeColor=”#4338e8″ />) : null} <MarkerAnimated coordinate={ pickupLocation } ref={pickupMarker} image={require(‘../../assets/icons/pick_pin.png’)} ></MarkerAnimated > <MarkerAnimated coordinate={ dropLocation } ref={dropMarker} image={require(‘../../assets/icons/drop_pin.png’)} ></MarkerAnimated > <MarkerAnimated coordinate={ dropLocation } ref={dropMarker} image={require(‘../../assets/icons/car_Icon.png’)} ></MarkerAnimated […]
Changes made in codes, texts not shown in the emulator in react native. how to solve this issue?
The emulator is not reflecting the changes I made in the react native code. the codes are saved repeatedly, and tried several things but didn’t work.
how to create a new project which contains a App.js in React Native
when I create a new project in React Native a default tsx file is created as the entry point. But I want to create a new app which has a App.js file as my main entry point. How?
how to display current date in text input’s placeholder in react native
`<View style={styles.dateInput}> <Text style={styles.text}>To Date</Text> <TouchableOpacity onPress={() => showDatePicker(false)}> <TextInput placeholder=”Select Date” value={toDate} editable={false} style={styles.dateinput} /> </TouchableOpacity> </View> <DateTimePickerModal isVisible={isDatePickerVisible} mode=”date” onConfirm={handleDateConfirm} onCancel={hideDatePicker} />` i want to display current date in place of “Select Date” in placeholder. i have a datepicker input for selcting the date. reactjs react-native
react native 0.63.5 library development symlink always hard/full reload – not hot reload work
react native 0.63.5 library development yarn symlink always hard/full reload app even small change – not hot reload work.
react native 0.63.5 library development symlink always hard/full reload – not hot reload work
react native 0.63.5 library development yarn symlink always hard/full reload app even small change – not hot reload work.
Detecting Walls in Images for a React Native App
I’m currently working on a React Native app and need some help with a feature that involves image processing. The app allows users to take a picture of a room and then select a wall to paint with a chosen color.
how to create a query of action to fetch data in react
I have a Person component in my react app to get detail personal information from a API endpoint by email address:
how to create a query of action to fetch data in react
I created a People component that display people information like name, department and others. It receive email address and then request a API endpoint to get detail data. and I use this component in a table, one for each row. Now my problem is this component fires lots of request to API when table load, but in fact many of them are duplicated because the there are same people in multiple rows. I use local cache to cache the fetch result, but it doesn’t work for the initial loading. for example, my table have 10 rows, it will fires 10 request to API for each row. but in fact there are only 3 person in this table. So I’m wondering if there is a way to setup a query or something so that it can reduce the request number from 10 to 3. Thank you.
A function to delete notes in a notetaking app isn’t working
So I have a rough notetaking app in React Native, and the function that’s supposed to delete the currently selected note isn’t working. It’s supposed to work from two ends: longpressing the preview of the note, and from the note viewing screen itself.