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

I am trying to implement the touch to input feature on the text field using...

Screenshot HereI am trying to implement the touch to input feature on the text field using react-native but it does not work.Currently, when changing the price by touch input, the price is not affected...

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


TypeError: undefined is not an object (evaluating 'navigation.navigate'),...

im trying to navigate to another screen from component placed on HomePage, but the code below doesnt work. I think i tried all of the solutions that i found in the internet, but none of them seems to...

View Article

How to display list of camera roll images filenames in react native

Im trying to render a list of images from the users camera roll. I am using expo-media-library to call MediaLibrary.getAssetsAsync() and for a first pass display the list of filenames that I will use...

View Article

How to use AWS Amplify in React Native with Typescript Project?

I'm trying to add Amplify Authentication in my react native project which uses typescript.There is a package given in amplify documentation 'aws-amplify-react-native' which is used as a middleware to...

View Article


Image may be NSFW.
Clik here to view.

Invariant Violation: no callback found with cbID for module

I have created yarn package with common components, services, utils, etc. for my project. Then I have created index.ts file in src folder, where I've exported all components. Then I've built the...

View Article

html string missing tagNames

So I have and advanced html string that contain some missing tags name.When using node-html-parser the parser are not able to parse those html in a right way and some html goes missing.Look here in...

View Article

**React Native Maps** - How do I zoom on Marker pressed?

For my internship, I have to create an app with a Maps view and markers called from an API (the standard GraphQL API). But I have to make the map Zoom on the marker when I click on it, and I don't...

View Article


How to use object with variable in react native?

I am new in react native.My question is pretty simple:I need to change subject of email with a address of consultant.example: Vul uw vraag, naam en adres in{address}Address is object, so how to make a...

View Article


Metro Builder: SyntaxError: Unexpected token = after upgrading to React...

Today I updated to React Native Version 0.65.1.After that I was unable to Start the Metro ServerI am now receiving following error message while building a Release .apk:...

View Article

Configure jest into exist react native app

I have an app and want to add some snapshots tests,it's my first shot to work in testing stuff,So after trying to run jest they ask for Mock packages I used or something so I add mocking jest for...

View Article

change state for a specific children in a loop with "useState"

I am using React native andI have a loop in which some property types are being displayed,i created only one state for it because property types are being fetched from DB.What i want to do is to show...

View Article

TypeScript React Native Flatlist: How to give renderItem the correct type of...

I'm building a React Native app with TypeScript. renderItem complains that the destructured item implicitly has an any type. I googled and found this question and tried to implement what they teach...

View Article


Image may be NSFW.
Clik here to view.

Type '{ children: Element; }' has no properties in common when create custom...

I'm trying to create a custom button for my app to use later, it look like thisconst BUTTON_SHAPE: ViewStyle = { borderRadius: 30, alignItems: 'center', justifyContent: 'center',};export interface...

View Article

(React Native - Expo) The last seleted object is not added to hook array

When Im trying to add objects to a hook inside a component it works fine - kinda.It seems that no matter what i do to get the hook updated with the whole array of selected items. It is always missing...

View Article


does native-base have a utility method that allows us to extract computed...

I am using native base and I want to use some of the theme values for example the primary text color and the main background colorI am looking for something that can take in a theme object as a...

View Article

How to stop Array from constantly re-rendering

I have an image array where I am updating each value when I click on a button in react and pick an image. However the array is constantly rerendering when I only want it to when I pick an image.Here is...

View Article


react native FaceBook SDK get token for IOS is returning wrong signature

I am using the latest Facebook SDK react-native-fbsdk-next, I managed to make it work for Android, but it is not working for IOS...

View Article

OpenAPI | ReactNative: generated model throws "Invalid Date at [native...

I use openApi generator to generate apis and models for my react native frontend. I have never had any issues until today, when after generating some (unrelated) apis one of my models started to throw...

View Article

Jest + @testing-library/react-native Error: ReferenceError: You are trying to...

Overview:I made a custom input component in which I'll be able to add props and optional props when necessary, but running into an error (see below) when running npm run test. I'm using jest and...

View Article
Browsing all 6287 articles
Browse latest View live


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