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

Image may be NSFW.
Clik here to view.

React/React Native + Typescript Error: Cannot find name 'INSERT FUNCTION NAME...

I'm just diving into Typescript and trying to implement it into one of my projects. However, I'm getting an error Cannot find name 'selectValue' when hovering over the selectValue method (See image...

View Article


How To Publish My First React Native Component Library?

I was in the process of trying to find the right components and a full component library at that, but I was coming up short and built my own.GitHub Reporeact-native-ultimate-modal-pickerI noticed NPM...

View Article


React Native with typescript unable to resolve modules

This is embarrassing, but I don't know what else to do. I wanted to port my little React Native project to TypeScript, so I created an empty React Native project with TypeScript template, tweaked...

View Article

TypeScript Error: How do I correctly add Interface to promise returned?

I'm working on my first TypeScript project and I'm having trouble add types correctly to my code. From the React Native Docs, DatePickerAndroid "returns a Promise which will be invoked an object...

View Article

React Native Typescript: Type 'string' is not assignable to type '"solid" |...

I am using TypeScript alongside with React Native.import React from 'react'; import { Button } from 'react-native-elements'; import { IThemedButton } from '../../../models/themedButton'; interface...

View Article


Javascript Library with typings is Not a Module (React Native)

I'm trying to integrate a Javascript Library (Microsoft Playfab) into my React Native app as per recommended here. The library comes with typings and has the structure as shown here. I have a file...

View Article

How can I cache the getDownloadUrl() calls on the client with Firebase...

I store some Firebase Storage paths for images/videos in the backend DB and the mobile client uses these to fetch the download URLs as/when needed for my views:import {firebase} from...

View Article

JSX Element Type Error: Adding Types to object returned from .map function

I'm trying to add the itemtype to the object that is returned from the .map function. However, I'm getting a JSX error and I tried adding item: JSX.Element to the Item type, but that doesn't seem to...

View Article


Typescript onPress With Promise Returned Error

I'm implementing typescript into my project for the first time and I have an error coming from onPress which calls toggleModal. The error is coming from onPressAccording to the React Native docs,...

View Article


TypeScript Error: Adding type to .map Array of Objects

I'm trying to add types to the Item object that is returned from unitedStates.map((item: Item) => {}, but I can't seem to correctly add the types.I've defined the unitedStates array of objects as...

View Article

Image may be NSFW.
Clik here to view.

Issue with publishing my first NPM Package

I've created my first NPM package which is a React Native component library. I have have published it, but I can't seem to figure out what I'm doing wrong to get it working in my project.NPM LinkGithub...

View Article

Property 'map' does not exist on type 'MapView'

I am using typescript and react-native-maps to create a react-native application. I am following one of their examples given here. Before I try to call the methods I have to create a ref as shown in...

View Article

Building React Native/Electron apps on remote server

Is there any standard way to build React Native (Android) / Electron (Win, Linux) apps on remote computer (server)?By standard way I mean some tool what I can download and start some building server.Or...

View Article


ApolloClient Typescript Higher Order Component issue (not assignable to type)

I'm trying to create a HOC in a React Native app, but I'm having issues getting the definitions to work. interface IWithApolloClientComponentProps { apolloClient: ApolloClient<any>; } export...

View Article

Image may be NSFW.
Clik here to view.

Publishing NPM Package Error "Can't find variable: React"

I've created my first NPM package which is a React Native component library. I have have published it, but I can't seem to figure out what I'm doing wrong to get it working in my project. I'm getting...

View Article


React Navigation Typescript Error On Stack Navigator

I'm having a typescript issue with creating a stack navigator using React Navigation in combination with a component wrapped with a couple Higher Order Components (HOCs). I'm using compose to string my...

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


How to specify (optional) default props with TypeScript for stateless,...

I'm trying to create a stateless React component with optional props and defaultProps in Typescript (for a React Native project). This is trivial with vanilla JS, but I'm stumped as to how to achieve...

View Article

How Would I Types to this function call?

The following tests pass with just import Icon from 'react-native-vector-icons/Ionicons';, but when I add Icon.loadFont(); to load the font, the following error appears. How would I add types to that...

View Article

Adding non-nullable static type to memoized components throws lint error, see...

Example 1.Non-nullable someStaticProperty, this will throw a lint errorimport { NamedExoticComponent, memo } from "react"; type WithComponentId = { componentId: string }; type...

View Article
Browsing all 6208 articles
Browse latest View live


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