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

how can i use default props in react.js or react-native?

For example. i have Feeds and Upload Components. also i have ImageFeedList component in Feeds, Upload Components(Feed.js)import React, {useContext, useState, useEffect} from 'react';import...

View Article


React-Native create button when other button's onPress Event

I want the button to be dynamically created and used when the onPress event occurs. Ask for help from great and kind friends.I want{ in screen one Button , -> Button click -> create one Button...

View Article


Image may be NSFW.
Clik here to view.

global.HermesInternal - Property 'HermesInternal' does not exist on type...

I have the code below, auto generated with:$ react-native init RepeatAloudApp.tsx/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */import React...

View Article

TypeDoc how do i generate documentation for internal functions

I'm trying to generate documentation for my TypeScript/React Native project. But from what I've seen you need to add an export to a function for TypeDoc to generate documentation. However, most of my...

View Article

Image may be NSFW.
Clik here to view.

React Hook Forms How to pass the errors as a props using Typescript

I'm defining a useForm.const { handleSubmit, control, errors } = useForm<{email: string}>();Now I'm creating a seperate component that will the input and I'm going to pass the useForm props i...

View Article


Calling a children method of a functional component from parent

I am not using class, I'd like to learn how to do it manually. I am dealing with login screen.https://snack.expo.io/@ericsia/call-function-from-child-componentIf you want to show me your code, you need...

View Article

How to setup/use ref correctly for a themed functional component in...

Main Goal: I have two TextInput and I want to simulate the return click on first textInput to set focus to the next textInput.Lets start with the setup (using typescript)I have a themed TextInput with...

View Article

How to setup multiple environment Dev and Prod for React Native Typescript?

In My application, I am using two different API's for development and production. I want to Implement Like whenever If I pass the command yarn dev iOS then build will generate with development API,...

View Article


expo typescript app how to correctly type navigation propto avoid. : "t...

I use in my expo app react-navigation and in a class component, I want to navigate to another screen ...I get the props in a function this way : private signUp({navigation}): void { //...

View Article


react-native 0.63.4 with Hermes (android): Crash on startup

I've been building an app in React-Native. It initially was a 0.60 project, and over the course of development I have upgraded it several times and not it's on 0.63.4.I noticed that, when running a...

View Article

Define State type on react native?

I'm calling a movie API, and want the searchValue to be updated everytime I write in the search bar. However, it seems like I need to define the "setSearchValue" as I'm using typescript. How can I do...

View Article

unable to resolve ./../packages.json from node_modules/

I am unable to compile my react-native JS bundle, as I am repeatedly getting the above error, but I don't think this has to be related to any package, although I doubt I am having some configuration...

View Article

Property 'value' is missing in type '{ searchValue: string; setSearchValue:...

I'm using react native with typescript to render some movie posters from an API when the movie title is writen on the search bar. But when I try to render the search bar on my app I get this...

View Article


Image may be NSFW.
Clik here to view.

Problems with react-native-svg-transformer and typescript

I decided to add typescript in a existing project and have a issue when a i works with import of .svg like a thisimport Icon from "../../../assets/Icon.svg";i tried configure metro.config.jsconst {...

View Article

Compressing input file to .gz (gzip) file in React application

I am trying to compress an uploaded file to gzip (.gz) in my react application. Tried to do it using JSZIP package but unable to achieve the results. Is anyone aware how to achieve it?

View Article


React Native State Updated when it should not

I have filterData which comes from a controller, so i set filterData to options, for the UI,Like thisconst [state, setState] = React.useState({ options: filterData, });filter data is this[{"List":...

View Article

Glitchy navigation when navigating to a stack screen in a different tab of...

As mentioned in the title, I have nested navigation stacks in my application as followconst MainStackNavigation: React.FC = () => { return (<Stack.Navigator initialRouteName="ScreenZero"...

View Article


react native : How can I change the following code to a function component...

How can I change the following code to a function component with hooks?In the following code I try to make a modal, but I need to change it to a function component .I would be happy to help with...

View Article

React-native-svg loading animated svg file from url

I am using "react-native-svg": "^12.1.0" and am opening svg this way:<SvgCssUri uri={imageURL} style={imageStyle} height={height} width={width} />If the svg on url is animated, the animation is...

View Article

Create a React Native app with no Typescript? (Could not get BatchedBridge)

I created a project with react native to try typescript, running this command:npx react-native init --template react-native-template-typescriptNow, everytime I create a project just using "npx...

View Article
Browsing all 6287 articles
Browse latest View live


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