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

how to put .obj file to android folder using expo?

I'm working on to make application with react-native, expo.I'm using react-native-gl-model-view library to use 3d model.It needs to be file in android/app/main/assets folder.I want to how to put .obj...

View Article


What is type for file upload Event in react typescript?

I want to add type in code but I don't know about what type can I useconst handleFileChange = (e: any>) => {setCollect({ ...collect, [e.target.name]: e.target.files[0], });};I won't use any, how...

View Article


Image may be NSFW.
Clik here to view.

Unexpected token '?' no stack in React Native

I'm getting unexpected token '?' error. But, on debug mode, the error disappears.

View Article

React Navigation: navigating to a nested Stack requires navigating to the...

Using @react-navigation (6.x) in a React Native app, I've decided to fully annotate our navigation stacks. Everything pretty much works, despite how convoluted RN makes it. The only notable exception...

View Article

Trying to apply correct types for createDataContext function in React using...

I'm trying to apply generic types for createDataContext helper function in React, I already spent some time, but have had no luck doing it. I'm trying to use a typescript as most as I can, but probably...

View Article


Image may be NSFW.
Clik here to view.

Display a Drawer Stack inside Stack Navigator now showing items after click

I am trying to display Drawer Stack inside Stack Navigation after proceeding from Login but my Drawer stack hamburger menu is showing up but Drawer stack is not popping out the drawer nor display...

View Article

TS2786 TypeScript not reconizing UI-Kitten components

Error message on IDE:TS2786: 'ApplicationProvider' cannot be used as a JSX component.Its instance type 'ApplicationProvider' is not a valid JSX element. The types returned by 'render()' are...

View Article

When creating a reusable component in React, how do I pass all other props to...

I'm creating some custom components for my application and they essentially have some base styling done to them for light/dark modes. My goal is to be able to use those components with all their props...

View Article


How to focus TextInput on button press in React Native

I have a TextInput component, which is only editable on component mount. It should become editable and auto focused, when a button is pressed. As I understood it correctly, the autoFocus property only...

View Article


Image may be NSFW.
Clik here to view.

React Native - How to change the style and properties to a pressed row inside...

I would like to change the style when the button is pressed, but just change the pressed one, not all the row list. How can achieve this in React-native. This is what I have tried.//hooks const...

View Article

Promise is not resolving in useEffect hook

I am getting response from api which i need to render.following is the sample response (relevant fields only): [ { ...other fields,"latitude": "33.5682166","longitude": "73.207334", }, {...

View Article

Image may be NSFW.
Clik here to view.

Typescript error on component IntrinsicAttributes

Im getting this error, "The type '{ data: dataProp[]; }' cannot be assigned to type 'IntrinsicAttributes & dataProp'.A property 'data' does not exist on type 'IntrinsicAttributes &...

View Article

How can add predicative for keyboard in react-native-expo?

I want create TextInput when forced show keyboard with predicative.I want add like below imagepredicativeI work with react-native-expo

View Article


how do I fix Expected 0 arguments, but got 1 in createDrawerNavigator

Please help me to fix error with drawer navigatorhere is the code of drawer.tsxerror: Expected 0 arguments, but got 1. in createDrawerNavigator functionimport { createDrawerNavigator } from...

View Article

React Native, accept native component properties as props and have custom...

I have this AppText component where I want to use a Props interface while having the ability to accept other props fields that I can consume with a spread operator. But I'm getting this error:Type '{...

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

Image may be NSFW.
Clik here to view.

TypeError: undefined is not an object (evaluating...

I am trying to implement chat app using react-native below is my dependencies"dependencies": {"@react-native-async-storage/async-storage": "~1.17.3","@react-native-community/masked-view":...

View Article


Typescript + React Native - "Property 'x' does not exist on type...

I'm trying to create an abstraction for a component by passing a component as a prop. In short, I want to be able to pass a TriggerComponent that can be either a View, Button, or Whatever other...

View Article

how to use two different route name with params for the same used component...

let's suppose I have the typing like the followingexport type NavProp< ParamList extends ParamListBase, RouteName extends keyof ParamList = string> = { nav:...

View Article

React Native Swiper ref element scrollTo does not work on first render

I am implementing an Introduction feature in my app. Where the screens show after splash screen. I used react-native-swiper component for guiding the user to step by step tutorial in my app.Here is my...

View Article
Browsing all 6287 articles
Browse latest View live


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