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

Using react-share with react-image-lightbox

I've taken over a React project and am fumbling incorporating react-share with react-image-lightbox. I'm pretty unfamiliar with React and Typescript all together so any insight is much...

View Article


React Native. How to get user local authentication whenever the app comes...

Well, I can`t find anything like this on the web, so I am hoping someone can help me on this one.I`m creating a bare react native android app, and I need to check for the user's Local Authentication...

View Article


ABI issue in standard pancakeswap fork

I am trying to create a fork of pancakeswap/goosedefi. The project works when I check it out from github and start using yarn start.As soon as I change the contract addresses, symbol, and ABI to match...

View Article

Expo listen for browser dismiss

In my expo react native app, the user is directed to a URL in a WebBrowser. I would like to be able to listen for when the user closes/ dismisses the WebBrowser and then execute a function. Is this...

View Article

Clear inversify-js container and resolve new service instances

I have a react-native application frontend using inversify-js.I've structured some service classes to use IOC (using an inversify container), such services intended to be shared as just one singleton...

View Article


What is type route when I use it like param?

I use route like:<Stack.Screen component={VacancyChat} name='VacancyChat' options={({ route }: any) => ({ title: route?.params?.order.title, })}/> What type of route I should use here instead...

View Article

Expo Location Error: Not authorized to use background location services

I'm creating a app that needs the current location of the user and need to run in real time. i'm using the Location.startLocationUpdatesAsync() from expo but i'm getting the error below.The app.json is...

View Article

Preview uploaded file in React Native Expo

I am trying to preview the file (which can be pdf or img or doc) after uploaded by user.I tried this but it preview file with specific url and i want it preview uploaded file only. any one have...

View Article


React Navigation Custom Tab Typescript Params

I am developing projects with Typescript language with React Native library. While creating a Custom Tab Bar, parameters include state, descriptors, and navigation. What should I specify as a type with...

View Article


Binding element 'children' implicitly has an 'any' type

i notice that below code should be js coding style, how could i write in the tsx styleimport React, { Children } from 'react';import {Text,StyleSheet} from 'react-native';export function Heading...

View Article

Detox tests failed with good id

I have defined testID on my components to implement detox tests, but some tests failed.I want to test if the components exist or if they are visible.My first test work correctly, but the three other...

View Article

How to annotate a react functional component with both props and states?

I am building a react native application. I have a parent component and a child component. The child component has a button whose event handler is in the parent component. At the end of the event...

View Article

StyleSheet object type?

So I've been trying to pass created StyleSheet object as a function argument. This is working fine so far but as I'm using TypeScript I want to give that argument a proper type and that's were my pain...

View Article


How to resolve this loader issue in React?

I wanted to use this popup component from GitHubI installed it using npm (I don't know how to do it otherwise).I imported it to my App.jsimport { Root, Popup } from 'popup-ui'After importing it, I get...

View Article

Expo-sqlite wrapper in Typescript

I'm new to typescript.Can anyone convert this wrapper to typescript?javascript wrapperThanks

View Article


Image may be NSFW.
Clik here to view.

The image source (either a remote URL or a local file resource)

hello I am new to react native I am facing an issue while I am passing imageURL as a prop I have an onboarding component in which I have an image tag I want to pass the image here as a prop but I am...

View Article

cannot forward ref to component TypeScript error

Trying to pass ref to my search component without any success. This is My component:interface SearchInputProps { placeholder: string; onSearch: () => any;}// type TextInputProps =...

View Article


unmounted component error on react native

warning error: 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 synchrounous taks...

View Article

Non-serializable value was detected in action [duplicate]

I'm trying to make Error param in payload, but redux-toolkit showing error "Non serializable value...".How I can pass Error type in props?p.s. I don't want to disable serializableCheck or another options

View Article

ZIndex overlapping with any react-native-paper component in Android only

I have an absolute flatlist and if I select one of the options and there's a paper button or any other pressable component is getting pressed along side with the selected element.Expected behaviour:I...

View Article
Browsing all 6287 articles
Browse latest View live


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