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

Image may be NSFW.
Clik here to view.

How to make Victory Native chart have more natural scrolling

I have a basic bar graph chart that allows panning. The only problem is there is no momentum scrolling. In other words, when you scroll and release your finger, it stops scrolling immediately, which is...

View Article


React Native Typescript, pass variable to another screen

I cant seem to figure how to pass variable with typescript in react native, I have tried the params but its saying undefined is not an object (evaluating 'navigation.props.value').below are the...

View Article


React Native Document Picker Android 7 crash

I have a problem with react-native-document-picker library (v.8.1.3) and Android 7, React Native version 0.63.5.When I try to launch the plugin to open system folders and pick a file, I get this error....

View Article

Is there a clean way to call an external sdk with Java files in React Native?

I have a React Native cli project for an Android app. I want to use a java sdk to call some functions from there for my Android app. Since this is an sdk that changes I don't want to change the java...

View Article

Specify exact type of functional component as prop in React Native

I want to achieve a simple (?) task. I want to create my custom functional component that accepts two components as params: a Text and a Button. I need that exactly those types are passed, so if I'll...

View Article


Axios request only work with react-native-debugger

I'm working on a tablet application where I need to fetch some data on the first page. When testing the route with Insomnia/Postman and when making that request by the app on a simulated device, with...

View Article

What url should I provide to Matomo for an app?

So I am trying to implement Matomo tracker on my react native app. I should open an Matomo account before, but it requires an website url. What url should I provide since I want to implement it on an...

View Article

React Native (expo-image-picker) image upload to backend does not work

I'm trying to upload an image to NestJs backend(backend uses multer) from React Native Frontend(Redux), using axios but it doesn't work and there are no logs from backend. I have tried formData.append...

View Article


how can I add a pay button that can clean everything and a checkout? [closed]

[[5[67](https://i.stack.imgur.com/piYJ0.png)](https://i.stack.imgur.com/UMEhC.png)1[2[34](https://i.stack.imgur.com/VUnq7.png)](https://i.stack.imgur.com/6LKZw.png)](https://i.stack.imgur.com/dxmrI.png)

View Article


Image may be NSFW.
Clik here to view.

How to properly use unions with route params for react-navigation-v6 in...

When using react-navigation-v6 with Typescript, I've been encountering ts-lint errors such as this one: Property 'variable' does not exist on type 'Readonly<{ variable1: string; } | { variable2:...

View Article

React Native TabView not working after generating an apk

I am using a TabView from react-native-tab-view, it works fine when when I am running my application with expo and scan the QR Code with my android device, but when I generate an apk and open the...

View Article

ReactNative Button onPress target getAttribute not accessible in TypeScript

I use TypeScript in ReactNative to access Button target.getAttribute("data-code") but getAttribute is not accessible in onPress event. How can I reference target type? I googled around the internet but...

View Article

react native navigation does not navigate to desired screen on button press

I have a main navigator and two navigators nested in it: Auth Navigator and a Root navigator that renders a different screen depending on whether a user exists or not. But It returns this error when I...

View Article


ReactNative extended button props undefined

I try extend a Button component with a signature attribute to store specific data and add Button specific parameter to fetch. Why event.currentTarget.props is undefined?import React from 'react';import...

View Article

how can I scroll up to see a section with a button? react native & typescript

I want a button to be able to scroll to a section where I have some questions, right now I have this code and if I click the button it doesn't do anything, it doesn't scroll, what am I doing wrong?I...

View Article


Error: While resolving module, the Haste package was found. the module could...

I am trying the new arch of react native. I have enabled it in my gradle.properties file. This error is for android only and I have not tried iOS yet.I am following the exact sample of Calculator...

View Article

React Navigation: How to create a reusable NavButton with type checks

I'm building a React Native app with Typescript and I'm fairly new to Typescript for React Navigation. I'm trying to simply create a reusable NavButton that can be used like this:<NavButton...

View Article


why my react native become .tsx instead .js

so after installing react native using npx react-native init MyProject the project is running and open in emulator but the app file is not app.js instead app.tsx,file strcutureThe question is i am new...

View Article

Image may be NSFW.
Clik here to view.

react-native: problem when scrolling in horizontal flatlist

I have a horizontal flatlist to render categories the problem is when scrolling the flatlist breaks and get reset as described blow:flat list code:<View...

View Article

JavaScript/TypeScript - Callback not removed, why?

Colleagues, I can prove with logs that removing listener in some public component does not work. First, I see the listener is still called, second, I never see second console output, which puzzles me...

View Article
Browsing all 6290 articles
Browse latest View live


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