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

Fetch and Axios not working on React Native

I've tried on 3 different projects now to make fetch or axios work and I can't. I have tried changing the android manifest like some people tried in some issues but it doesn't work. Not with...

View Article


SectionList Input section does not refresh on state change

Following is my React Generic Component. I have tried to simplify it but It is still not too short. Apologies for that. My intention is to create an editable menu with attributes and their values which...

View Article


React native testing with Typescript and Jest

I am trying to start test with react-native/expo and typescript. I have created an app with the expo's basic typescript template.To start testing, I followed the expo's documentation on testing with...

View Article

type for material UI icons

I have a component that looks like this:type IconButtonProps = { text: string ; onClick: () => void, icon: any};export const IconButton: FunctionComponent<IconButtonProps> = ({ text, onClick,...

View Article

React-Native custom Text component with Typescript : "Conversion of type...

I've been trying to implement the following custom Text component in React Native.import React from 'react';import { Text as RNText, TextStyle } from 'react-native';export interface TextProps {...

View Article


react native : value of the picker does not change

The value of the picker does not change if I select another value from itIt just happened when I added onValueChangeI would be happy to help with thisconst [eventType, setEventType] =...

View Article

How to make peer dependency conditional in Typescript React Native project

I have created an npm module (Typescript/RN) used for event tracking. One of its features that can be turned on at initialization is to automatically track geolocation data with every event. The module...

View Article

Module Namespacing error for React Native Expo

I'm a maintainer for https://www.npmjs.com/package/@dfinity/agent, and a developer called out that our packages weren't working with default settings for React Native, so I dove into it to reproduce.It...

View Article


React native Typescript Touchableopacity props error

I have created one reusable button by using Styled component and Typescript. I made onPress void. I am using this button to the headStyles. HeaderStyles have a one prop name headerLeft. headerLeft's...

View Article


Image may be NSFW.
Clik here to view.

React Native - Handle session timeout after any api call

I have a complex react-native application and I'm using .net api for backend. When session timeout occurs on api side, I want to automatically logout the user and return to login page. But I can't use...

View Article

How to create a form in react native?

I am creating a registration form in React Native. Currently, I am using useState() hook for each field: const [firstName, setFirstName] = useState(""); const [lastName, setLastName] = useState("");...

View Article

React native TextInput Property does not exist on type 'IntrinsicAttributes &...

I am trying to create a TextInput component, that has 3 required parameters, and other should be passed as ...rest, so i can reuse this components in any shape with any props that TextInput can...

View Article

Image may be NSFW.
Clik here to view.

Styled Components and TypeScript: No overload matches this call

I'm new to Style Components and I'm trying to build a weather app using React Native. I would normally use CSS modules but it seems that this isn't an option for mobile development.Here's the...

View Article


React native styled components Typescript No overload matches this call

I have created one reusable button by using Styled component and Typescript. I am using Accessibility. In my project there are multiple buttons where I am using Accessibility. I made one global...

View Article

Unhandled promise rejection: TypeError: undefined is not an object...

I'm trying to retrieve data from a pre-populated database using TypeORM using Expo, imitating this working example (https://dev.to/jgabriel1/expo-sqlite-typeorm-4mn8). It keeps throwing this...

View Article


How can I use hooks in a higher-order function that returns a ReactNative...

Let me start with the working code that I'm trying to refactor. I'm trying to abstract button creation, and whatever I try, I keep getting the "hooks can only be called inside of the body of a...

View Article

Strange TS2322 (Type not assignable) Error

I have a super simple code snippet here, but no matter which editor I use (Webstorm, VSCode) I get red underlines under my SearchBar's "onChangeText" property with the following message:TS2322: Type...

View Article


How do I make SectionList only show the refresh indicator when pulled to refresh

I have a SectionList where I want to do pull to refresh. I also have a DataContext that provides:fetching: boolean, a state that indicates something is fetchingfetchedData: Data[], a state that...

View Article

GraphQL Apollo types generation on React Native

I'm usingNeo4J 4.2Apollo serverGraphQL & @neo4j/graphql (to generate Neo4J types from schema.graphql)Expo React Native + Apollo ClientTypeScriptAnd I wanted to generate TS types for GraphQL queries...

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
Browsing all 6287 articles
Browse latest View live


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