Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Browsing all 6287 articles
Browse latest View live

How to compare two objects value by iterating if both have same name in...

The props coming from react is account and I'm keeping a copy of it as previousProps, before setting it to the state I need to compare each and every object and assign the value to state if both props...

View Article


React Native Typescript Template doesn't work

I have created a new project of React Native with a typescript template using the official command react-native init MyApp --template typescript (a couple of times) and I can't see the changes I apply...

View Article


how to use navigation.replace in TypeScript?

I am trying to use this in my code:const navigation = useNavigation();navigation.replace('AllFriends')But I keep getting an error that:Property 'replace' does not exist on type...

View Article

How to show alert popup only inside specific screen using react native?

In My case, I have implemented alert popup within a function and the function will call from componentDidMount(). Now the problem is the alert implemented inside the home screen but I am getting alert...

View Article

No overload match this call (Component React + Typescript)

In my placeholderTextColor the error of the title persist and do not find a solution import React from 'react';import { TextInputProps } from 'react-native';import { color } from...

View Article


How to remove strings and special characters from string and show only...

In My case I am using react native typescript, I want to get only numbers from group string without comma. How to get it using regex match or replace? taskname = TASK_XC0.0.0.0.89t_abc_test let task =...

View Article

Why do i get typescript unexpected token errors when compiling to web for...

I've been trying to get a webrtc project made for android to work for the web.The original project is written in react-native.When i tried to use expo to compile to web, it gave me errors about...

View Article

Typescript error when using useImperativeHandle alongside TextInput

I'm trying to convert ReactNative official example for useImperativeHandle with TypeScriptoriginal:function FancyInput(props, ref) { const inputRef = useRef(); useImperativeHandle(ref, () => ({...

View Article


How do I fix showing database with axios?

I have a todo list app on React/TypeScript/C#. I have made connection with database with axios. Adding or deleting items on both frontend and backend seems to work fine. But I can not see the text of...

View Article


Image may be NSFW.
Clik here to view.

Unable to nest stack navigator within a drawer navigator

I created a stack navigator which show be nested inside of a drawer navigation.My stack navigator code:import * as React from "react";import { createStackNavigator } from...

View Article

Image may be NSFW.
Clik here to view.

React Native header bar

How can I configure the Android header bar background color similar to the ios with react native?Thanks

View Article

Adding type for useRef on ScrollView react-native

Looking to create a ref to a ScrollView component like so: const ref = useRef<ScrollView>(null); (or something to this effect) essentially I need access to the flashScrollIndicators method like...

View Article

matter.js circular area with bodies inside

I'm trying to find a way to build a circular area with borders and put rigid bodies insideDidn't find an easy way to make it.There's one example of a terrain built from an SVG:if (typeof $ !==...

View Article


How to use react-native-webview-leaflet?

I'm devolopping an app using React Native and Expo. And I want to integrate react-native-webview-leaflet. But when I want to use the tag WebViewLeaflet so that I can be able to use WMS with GeoServer,...

View Article

ReactNative:Can't perform a React state update on an unmounted component

bug11:48Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous...

View Article


How can I call a C++ method from react native?

I want to add a C++ file and call its methods from react-native repository.I have already tried some of the answers which says to install ffi-napi but that is not working. There are some specific tools...

View Article

How to write type definitions for firebase objects in react?

I am trying to integrate firebase with react-native(expo). I followed the firebase documentation found here. The documentation was quite straight-forward and works as intended, but since the document...

View Article


react-native run-ios is taking .e2e.ts file instead of .ts file

I'm dealing with a curious issues : I'm using detox for e2e testing, and in order to mock my API, I'm using two files:api-service.ts : The API Service for my appapi-service.e2e.ts : The API Mock for...

View Article

How to load script in React-native?

I want to load the script in my React native project. I would like to make a custom Razorpay payment. and we use typescript. I tried many ways but I am not getting a solution. Please give me a solution...

View Article

Expo React Native with Type Script written package

Trying to use Sync-Storage ( it's written in type script ) and I am using a clean install of expo init project_nameI trying to get React Native Web running, and I'm not sure how to fix this error or...

View Article
Browsing all 6287 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>