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

How to do width:null with Typescript react-native styles?

I know width:null have a special meaning, but its showing error in typescript. I want to do it without using strictNullChecks:false

View Article


Is there a way to fetch needed information from JSON file in React Native

I am using a COVID-19 API (https://api.covidactnow.org/v2/counties.json?apiKey=) that records various information like number of cases and deaths in each county in USA. In my React Native app, I...

View Article


React Native - Invariant Violation: Module AppRegistry is not a registered...

I have started getting this error Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) since yesterday, my application was working and all of sudden it...

View Article

Convert the PropTypes compatible to TypeScript

What I'm trying to do is to pass a props and be compatible with both PropTypes and TypeScript.I have this Props inputGroupAddon:<TextField value={value} inputGroupAddon={{ prepend: { icon: 'First',...

View Article

Image may be NSFW.
Clik here to view.

How do you use segmented picker to change chart axis in React Native?

I want to do something similar to this, in which I use the segmented picker to change the scale of the graphs. Right now, I have the segmented picker, but I'd like to use this to change the graph axis...

View Article


Is there a way to enable selection when TextInput is set to editable=false

I'm wondering if any of you know of a way to make TextInput selectable while the editable={false}.Thanks.

View Article

Using handleTextChange in a custom search bar component in typescript, google...

I want the search bar to behave like a normal search bar, to retrieve information as you type.Currently, when I type something in the search bar, it deletes whatever I type immediately after I type it....

View Article

Printing date without time

I'm still new to react(Typescript) and I want to print a date I got from the database but without the time.here is my Interface:interface Games {g_Id: number;g_Title: string;g_Genre:...

View Article


How can I use segmented control to change the axis scale of graphs and charts...

I'd like to use this segmented control library with the options Day, Week, Month, and Year. Whenever I pick one of these the chart should update and the axis scale should change corresponding to what I...

View Article


Rewire throwing an error in react-native written in typescript

I am trying to write unit test for a non exported function using rewire in react-native , but it starts showing below mentioned error as soon as I do the setup for rewire and run test for that...

View Article

Image may be NSFW.
Clik here to view.

Function type in TypeScript

With regards to my previous question:Convert the PropTypes compatible to TypeScriptif I have this function to pass:const iconD = () => <span...

View Article

Unable to resolve module 'module://graphql/language/parser.js'

I am trying to make a React Native TypeScript project on Snack Expo. Although I have already added graphql in the package.json as well as the types file, I still get this error :Device: (1:8434) Unable...

View Article

require('react-native').NativeModules.RNRandomBytes is null

In the index.js of the npm library react-native-randombytes there's a line: let RNRandomBytes = require('react-native').NativeModules.RNRandomBytes. In the init() method there's a code block wrapped in...

View Article


Image may be NSFW.
Clik here to view.

React-Native Android Error : > Could not find :unspecified:

Could not determine the dependencies of task ':app:preDebugBuild'.Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.Could not find :unspecified:.Required by:project...

View Article

Module '"./node_modules/react-native"' has no exported member 'View'

After i convert my project in typescript showing me following errorModule '"./node_modules/react-native"' has no exported member 'View'.import React from 'react';import {StyleSheet,View,Text} from...

View Article


FlatList onPress to different screen with data

I have a list of countries in a flatlist with a search filter I made using an API. I want to make it so when I press on a country's name in the flatlist, it takes me to a screen where it prints out...

View Article

getting stuck with expo-notifications

I am trying to add notifications to my react native application .i am not using ejectSo i had to use expo-notifications library and all working fine.from this project: github codeBut it's in typescript...

View Article


How to pass in constants from other files in React Native Typescript

I want to pass in the countryCases and countryDeaths constants that use useState from the Data.tsx file. I want to pass them in and use them in the OtherScreen.tsx file. How can I do...

View Article

How to use constants from other screen files without exporting

I'd like to use constants from Data.tsx in `OtherScreen.tsx' without exporting the constants. How can I do this? If React Context is the only way, how can I implement that in this...

View Article

Parameter Decorators in React Native

I have used decorator on React Native with typescript. I can use decorator everywhere but I can't use as parameter decorator. For example@Client('API_LINK')export class Service {...

View Article
Browsing all 6287 articles
Browse latest View live


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