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

React-Localization setLanguage() does not update the page

What am I trying to achieveCurrently, I am trying to implement localization within our current React-Native project.To do this, I choose the following package: React-LocalizationOur project makes usage...

View Article


How to crash a React Native app that is Jenkins checked by type script to not...

My Jenkins server will audit code like due to Typescript checking.let x = [] x() I want to simulate a real crash, not their test crash.

View Article


Switching from Angular to React [closed]

I have a background in Angular + Typescript/ .NET-Core Web developement. Is it difficult to shift gears into developing React Native App (mobile)? Do I have the advantage going into this considering my...

View Article

React-Native header is not getting translated

So I managed to get translation working pretty good in my TypeScript React-Native application. Everything is getting translated (every page and the bottom navigation), except for the header titles.The...

View Article

Create and publish a reusable React Native UI component library

I'm trying to create a component library (similar like Kitten UI, Ant design RN and etc) for React Native and I'm wondering if there is any simple example repo or boilerplate (with Typescript) for...

View Article


Add strong typing for react navigation props

I'm using typescript in my react-native project(expo).The project uses react-navigation, so on my screens I can set navigationOptions and I have access to the prop navigation.Now I'm trying to strongly...

View Article

React Typescript Error using static object

I am building a react native app and am using react-native-reanimated and react-navigation-animated-switch to try and create an animation when changing screens. I am also using typescript. Just...

View Article

throw error failed on promisse typescript

Im trying to create a netInfo checker on my API service. This is my job to connect with an endpoint, and i need to create a netInfo check service to handle connection errors :loginExists(username)...

View Article


React Native SectionList: What are the correct TypeScript types

I'm building a React Native app using TypeScript. I'm trying to use a SectionList. I followed the docs, and here is my code: renderSectionHeader = ({ section: { title } }: { section: { title: string }...

View Article


How to extend React Component prop typing without changing all usages of...

I want to make testID a prop available for all React.Component instances for native testing. Currently, I am adding it to prop type of all the components that are using it. Is there any way where, for...

View Article

react-native-paper code completion for jetBrains ide

Intellij uses @types/* libraries for for helping with react code completion. react-native-paper doesn't have this kind of seperate library.As its author claims it does ship with types inside...

View Article

Mutually exclusive attributes using Flow

I'm building a UI component in the company I work for. It's in React Native and it uses Flow to typecheck. Thing is I want the components to have certain variants but they force me to have nothing but...

View Article

How to deal with SQLite migrations in React-Native using TypeORM?

I am writing a React-Native app which heavily relies on local storage, and have chosen TypeORMto handle this.I am now entering a phase where my project is live, and I want to add new functionalities...

View Article


Are you able to programmatically generate screens inside React Navigation Tab...

Using React-Navigation, I am trying to generate an unknown number of tabs based off of the values that I've drawn from an array, and pass the data from that array value into the screen. For example, if...

View Article

Why is this React method not working as expected?

I have some code that is meant to eliminate placeholders onFocus and return them onBlur, it seems to work properly for the login text input, but not for the password one. Do you mind having a look at...

View Article


TS2740 Type is missing the following properties from ReadOnly error in React...

Since StatelessComponent is deprecated, I am trying to turn all the components into classes.I have an interface, for example: interface MyInterface{ prop1: number; prop2: boolean; } And I use it in the...

View Article

Can not import TypeScript components with Babel custom aliases

I am using babel-plugin-module-resolver to import project files easily with using custom aliases. Everything seems fine on the TypeScript side. Below is the tsconfig.json:{ "compilerOptions": { /*...

View Article


Typescript optional chaining error: Expression expected.ts(1109)

I am trying to do optional chaining in Typescript + React Native.Let's say I have the following interfaces:interface Bar { y: number } interface Foo { x?: Bar } and I try to run the following: const...

View Article

All React Native Firebase modules must be of the same version - can't use Auth

I installed RNF from starter kit provided by Invertase. I am using RNF app, database, analytics, auth. Everything worked fine until I needed the auth module. It throws an error on app startup (on...

View Article

Image may be NSFW.
Clik here to view.

Wrong import error with TS/JS mixing and visual studio code

I'm working on a react native app with both JS and TS. When I have different configurations according to the OS, I'm creating two files.One for iOS, one for Android.It works pretty well and handle...

View Article
Browsing all 6208 articles
Browse latest View live


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