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

createStackNavigator with Expo and Typescript, doesn't render anything

UPDATE:Git Repo of NotWorkingProjectTrying to use react-navigation package in React Native(Expo-Typescript) the same way as we do with regular React Native (Expo - Vanilla JS)But it doesn't render...

View Article


Metro bundler errors when using module-resolver

I've created a project using expo typescript template. Running on iOS and Android. No web. I then set up path alias in tsconfig.json as follows: "paths": { "@models/*": ["./src/models/*"],...

View Article


How to define navigation proptype in React navigation 5x

I am working new project. I started using typescript in this project. When I started the new project, I used react navigation 5x version. My question, how to define interface destructed navigation prop...

View Article

jest test freezes with typescript

Repo with reproduction: https://github.com/nmatushevskiy/jest-with-typescriptHello everyone, i've had a strange issue. I'm using jest, typescript, react-native, expo, babel, and components library -...

View Article

react-native-svg ForeignObject element not found (React-Native + Expo +...

I have a React Native project created with Expo. I also used the expo TypeScript configuration.I installed react-native-svg using "expo install." I currently have version 9.13.3 installed.Whenever I...

View Article


createStackNavigator and createBottomTabNavigatorin React Navigation v.5

I am new to react native, and i'm using new react-navigation v.5 in my react-native app. When i use createStackNavigator and createBottomTabNavigator together in NavigationContainer i have errors -...

View Article

The Keyboard cover TextInput form when I run the React Native Expo app

When I run the app with expo and use my DateFormInput component the Keyboard covers TextInput. I tried to use I , "@pietile-native-kit/keyboard-aware-scrollview", "@types/react-native-keyboard-spacer",...

View Article

using REGEX on textInput in react native

I can't seem to make my regex work so i think I must be doing something wrong. If anyone could help me out that would be great. here is my regex functionlet validatePlate = (plate) => { var re =...

View Article


TypeScript error Parameter 'props' implicitly has an 'any' type

I am testing out how to use Context in React but for some reason I cant run the app due the typescript error I get! Code:import React from 'react'; import './App.css'; class App extends React.Component...

View Article


Why does my React Native app build successfully despite TypeScript compiler...

I've recently started using TypeScript with Expo. I've done all the linter/formatter integrations like typescript-eslint so I can catch most of the errors during coding. To check if the code compiles,...

View Article

Image may be NSFW.
Clik here to view.

Sublime text cannot find imported node modules

Sublime Text 3 underlines all of my imports, giving me the error - any ideas?Cannot find module....tsconfig:{ "compilerOptions": { "allowSyntheticDefaultImports": true, "esModuleInterop": true, "jsx":...

View Article

React Native High Order Component for State Component

I'm trying to do a hoc for a state component in React Native with Typescript which is defined below:export function hoc<T extends ComponentClass>(target: any): T { return (target: any) =>...

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


Image may be NSFW.
Clik here to view.

Double tab bar navigation to move together

i want to have tab bar navigation and under it another tab bar navigation and they can move together, as in the image below lets say we have screen 1,2,3 in a tab bar navigation , standing on screen 1...

View Article

Action not dispatching using react/ redux/ typescript

I get the error:node_modules\react-native\Libraries\Core\ExceptionsManager.js:86 TypeError: Cannot read property 'videos' of undefinedThis error is located at: in Connect(HomeHeader) (at...

View Article


TypeScript Property 'navigation' is missing in type but required in type...

In a React Native App, I understand that when you pass your RootNavigator inside createAppContainer and export it, the navigation prop is implicitly made available in all child components.export...

View Article

Issues With Arrow Syntax and Binding in React for Grandchild Element

I'm trying to create a test page and I'm having trouble with getting some buttons to work.import React from 'react' import { Dropdown, Icon, Menu, Segment } from 'semantic-ui-react' export class Page...

View Article


JSX element type 'HTMLImageElement' is not a constructor function for JSX...

I am trying an example with React Native and Typescript and for the following code: <Image style={{ width: 51, height: 51, resizeMode: 'contain', }} source={{ uri: portretPhoto }}...

View Article

Sentry: beforeSend is called mutliple times

I have a react-native app with redux. I want to fetch a PUT request with data when Sentry logs an error. I’m new in Sentry and I use this in my App.js:Sentry.init({ dsn: ..., enableInExpoDevelopment:...

View Article

How to execute a function when some item renders in react native?

I have a sectionlist of Contacts where I am displaying both device and online contacts of a user. The online contacts api doesnt give me all the contacts at once. So I have to implement some...

View Article
Browsing all 6211 articles
Browse latest View live


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