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

Ionic React: How do you implement the ionic refresh to load a list with more...

I am having difficulty trying to implement an ionic refresher to my app so once you pull down on refresh the page will add more to the current list on the page. I have added snippets of my original...

View Article


Image may be NSFW.
Clik here to view.

View hidden by inner view

I have wrapped my content in a SafeAreaView and then another View component. However, the SafeAreaView and View both are somehow hidden/overwritten by the secondary View which has the style of the...

View Article


Image may be NSFW.
Clik here to view.

rows with overlapping text/icons in Android

I have a screen where I map some icons and text as rows. It works perfectly fine in iOS but everything overlaps in Android. I have already tried using lineHeight as suggested by some other answers but...

View Article

Image may be NSFW.
Clik here to view.

unable to scroll list in android with keypad

On my screen, I search items using the input field. The list that is rendered is inside a ScrollView but it does not let me scroll in Android at least. How can I fix this?Maybe its because of the...

View Article

Possible Unhandled Promise Rejection (id: 0) Error: timeout of 0ms exceeded

I want to show the total number of connections I have using the API I created, but when I run with the mobile project, the results show only '0' and show this error message. It should automatically...

View Article


How to import React-Native types via Typescript for Flow?

In my react-native application I have a TextInput component. The TextInput reads some types from the following...

View Article

What's the right configuration for testing using jest for a project that uses...

I'm working with a Typescript Expo projectA and a libB that is npm linked from projectA.LibB has react-native and some other RN related libs as peerDependencies and devDependencies.ProjectA has the...

View Article

How do I set custom drawer items to "focused" dynamically?

My end goal here is to give a few drawer items custom background colors depending on a few states set elsewhere. I understand that in order to give unique background colors to drawer items, I need to...

View Article


Placing a marker by clicking anywhere on the mapview screen in react native

My problem is, im trying to make my mapView so everytime I tap on it a marker is created and the marker's latitude and longitude are sent to the console in order to send them using fetch, I found...

View Article


Image may be NSFW.
Clik here to view.

insert space in overlapping rows?

On my screen, I map text, along with an icon (styled as rows). This works well in iOS but the rows (including icons/text) overlap in Android.I tried using lineHeight as suggested by other SO answers...

View Article

How can I type check ReactNavigation's navigation using NavigationHelpersCommon?

I am new to the typescript screen, so the answer may be an obvious one. I am passing ReactNavigation's navigator as a prop to a functional component and I currently type check using navigator: object,...

View Article

Image may be NSFW.
Clik here to view.

Invariant Violation: React Native w/ Typescript trying to use Material UI

Working in React Native, trying to use Material UI with typescript. Everything I've looked up says "Use a capital letter for your component name" and well... I've got that. I'm not sure what else this...

View Article

React-Native Typescript, Constructor isn't assigning property

I have a simple TSC class in my React Native App, that has a constructor, every property is set correctly except weight lbs, it returns undefined. Could someone tell me what's going on?Class Foo{...

View Article


Typescript React Native Property 'scrollToIndex' does not exist on type...

I have a component that scrolls a React Native FlatList:<BottomCarousel ... onSnapToItem={(index) => { myList.current?.scrollToIndex({ animated: false, index }); }}/>myList is a FlatList which...

View Article

overlap button with another view

I have a screen where I input some values in the input field and get search results displayed accordingly (within the <View style={styles.dropdown}>). I want that the list should overlap my...

View Article


Image may be NSFW.
Clik here to view.

scroll when the keypad is open

On my screen, I type in the input field and get search results accordingly. The list is rendered within a ScrollView but it still doesn't let me scroll when the keypad is open (in Android at least).How...

View Article

unable to click on Icon in android

I have a screen where I will render some icons as buttons. It works in iOS but on Android, I am unable to click on the Icon. It has something to do with the overlaying Views/zIndexes. But I am unable...

View Article


TSLINT Error: Property 'Component' does not exist on type 'typeof React'

I downloaded the [react-native-redux-typescript-boilerplate]: https://reactnativeseed.com/ . The project runs smoothly in an android emulator. However, there are loads of tslint errors especially in...

View Article

Lerna with Yarn, TypeScript and React Native: Cannot find module...

The project uses Yarn, React Native, Lerna and Typescript. It is structured as a monorepoHere is the structure:project|- packages | - mobile | - src | - packages.json | - tsconfig.json | -...

View Article

How to access data from FlatList in to parent component to be used in a function

i'm trying to access the code and name value from within my child component which is a flatlist and access the select data in the parent component:My flatList is as follows & it house a child...

View Article
Browsing all 6214 articles
Browse latest View live


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