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

Passar objeto entre uma tela e outra (Sem ser pela url) React Native +...

gostaria de saber se existe uma forma de passar objeto entre paginas utilizando ou router "import { useRouter } from 'next/router'", a maneira em que fiz passa pela url, porém gostaria de passar de...

View Article


Testing React Native Hook with Jest

I've got a basic React Native app that has been barely modified and initialized using Expo:expo init AwesomeProjectcd AwesomeProjectyarn startThe initialized app has this class:import {...

View Article


React native debugger: "Error: ENOENT: no such file or directory"

Problem: When I run the remote debugger, metro server says it can't find this file.Error: ENOENT: no such file or directory, open...

View Article

How to integrate react-native app as a module in existing android app?

I have made a demo react-native app using typescript, and want to open that on a button click inside my native android project using an intent.. Can anyone provide a solution that actually works?

View Article

Open react-native-paper Modal from another component

I have a stack navigator with Button in Appbar.Header for opening modal in file stack.tsx:export const StackNavigator = () => {return (<Stack.Navigator ...<Appbar.Header><Appbar.Content...

View Article


Writing react native with typescript with redux and react-redux

I was wondering when I write redux action, reducers and store using typescript in React Native, should I give it an extension of .tsx or it can be .js only?For instance this is my store.tsx file look...

View Article

How to setup React-Native with Yarn and Typescript

So up until now I have been working on my project using barebone react-native and npm and its was going okay but now I face a problemI need to add a new feature at the later stages which would be a...

View Article

Correct TypeScript types for passing children props through a React higher...

Consider the following code, containing a higher order component, a functional component, and a component created using the HOC and our functional component:interface InjectedProps { someProp?:...

View Article


Testing React Native Functional Component With Dependency on Promise

I've got a functional component in React Native.import { ReactElement, useEffect, useState } from "react-test-renderer/node_modules/@types/react";import SpecialObject from "./SpecialObject";import {...

View Article


Invalid hook call. Is it possible to call hooks or async functions outside...

Is there a way to make this work without changing my function component to a class based component:export default function SendVerificationCode({ route, navigation}: NativeStackScreenProps<...

View Article

How to access the text inside a TextInput without having the value prop defined?

I want to create a form without using useState to control the inputs because I only need the inputs values when the user presses the button, so I want to access/know the input value at that time only....

View Article

React Navigation modal V6 with expo

Good day, I tried using react-navigation 6 to display a modal using presentation: "modal" as specified on the docs. But it is not giving me the desired output. The modal does not display as a modal but...

View Article

Unable to assign data after search filter completes in react native...

I have a custom object an array and storing api response in it and showing that data into UI for flatlist.export type userInfo = { id: string, title: string, email: string, userAccount: number};export...

View Article


Map Function - Unhandled JS Exception: TypeError: undefined is not an object...

I have a file called displayKeyHelpers.ts and the members.map code is on line 118. The code works for most users and in QA as well but occasionally it seems members is undefined. I am looking at a...

View Article

Image may be NSFW.
Clik here to view.

React Native Align button on top of keyboard for all devices

So I need to align a button Which is not at bottom om screen by design should be at middle of screen but it should align to be on top of the keyboard for all devices. If you check this screenshot : for...

View Article


Refresh tab in ScrollableTabView - React native

I am trying different solution from last 3 days. please help me to get on right track.All the API Calls are in the child components.How to refresh tab when navigate using...

View Article

Image may be NSFW.
Clik here to view.

TextInput doesn't filter FlatList items

I'm using Typescript, form some reason the function below gives me the error: Property 'title' doesn't exist on type 'never'. If i write the same function in JS it doesn't give me error, only in...

View Article


What does this syntax mean in React Native and TypeScript?

var = ({ data }: { data: interfaceModel }) => ( // data is used here)What does this syntax mean? I know that the second data has an interface of interfaceModel. But why are there two occurrences of...

View Article

React native typescript use correct setTimeout type

I'm trying to workout what the correct typescript tsconfig I need to apply to get the correct types for the standard library in the react native context. Specifically my issue is with setTimeout has a...

View Article

How to do conditional rendering in flatlist

I have fetched from an API that records the country name and population. I have the country names in a search flatlist. My goal is to display a small circle next to the country name on the flatlist...

View Article
Browsing all 6287 articles
Browse latest View live


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