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

How to solve syntax error, unexpected token, export type?

I was using version 2.x of react-navigation, now I'm migrating to version 5.x. I have installed all modules according to the documentation, but on running the application, I get this error.It seems...

View Article


React Navigation custom route params and typescript

I have an Error screen that needs to know the error number and a description to display the error and I can't figure out how to tell TS which types are my Error screen custom params. I'm calling my...

View Article


Is there a way I can use Amplify & Graphql to implement user follow feature...

I'm currently working on a social media app and I've been trying to implement user follow feature but I seem to not get the logic. I've checked online and all I see is Firebase and I'm really not a fan...

View Article

Property 'setNativeProps' does not exist on type 'ForwardRefExoticComponent'

I have the following code: const menuItemRefs = useRef<{ [key: number]: typeof View }>({}); const { isMenuVisible } = useTopMenuContext(); useEffect(() => { const onBackPress = () => { if...

View Article

React native firebase not updating the realtime database

Here the snapshot is updated and its not reflected in the database when I check the firebase consoledatabase().ref('users').set('uid');database().ref('users').on('value', snapshot => {...

View Article


Mocking react-native-keychain, undefined is not a function

I'm trying to write a test for my helper functions, which uses the react-native-keychain Library.I accordingly to the documentation mocked the library.I added a directory react-native-keychain to the...

View Article

React Native: How can I send events from iOS (Swift) back to JavaScript?

I am working on a project where I want to integrate React-Native into a native Swift app. To make sure both sides are aware of state, I've made a 'message bus', A mechanism through which events can be...

View Article

Image may be NSFW.
Clik here to view.

drop down menu hiding behind content

I have a screen that looks like this:return (<SafeAreaView><View style={styles.container}><View style={styles.topContainer}><View...

View Article


I'm having problems using DatePicker with react native

I'm having problems using DatePicker with react nativewhen I'm using it, there are an error like this:render error a date or time must be specified as value propmy repository: my github repositoryconst...

View Article


React-Router-Native passing image as parameter

Im trying to pass image as my parameter on react-router-native and trying to get the data from the location.state but im having issue.I usually do this to display imageImport Icon from...

View Article

How to type GraphQL union responses with TypeScript and Apollo Client?

I'm using Apollo Server and Apollo Client with React Native and TypeScript. I'm trying to do my error handling via GraphQL unions but don't know how to type these. Looking at the example underneath, I...

View Article

js this expression is not callable problem

why I get this error ? My code working fine and my search functionality also works fine so why I get this error ? The error is on my Categorie.tsx file on ".filter" functionThis expression is not...

View Article

What is the default value for tsconfig "include"?

In my react native project I'm using this library v1 and in the docs it says to add "include": ["node_modules/react-native-redash/lib/typescript/v1/index.d.ts"] to make the types work, and adding that...

View Article


Using React how to append to a string every time a checkbox is checked and...

I want to update a text input field every time a checkbox is checked(true). Can someone please advise how can this be done please?.I'm trying to click a checkbox and update another input field. Every...

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


Typescript error on SectionList props "is not assignable to type...

I'm using a SectionList with the react-native-modalize lib to display it on a modal. Everything is working, but TypeScript is giving me this error on the 'sectionListProps' prop of the 'Modalize':Type...

View Article

Image may be NSFW.
Clik here to view.

concat string in array ts

I have a problem to solve, this problem is basically concat one value inside my array but the problem is my array won't accept a value i will concat inside the array below is my code.interface...

View Article


React Query useQuery returns undefined with React Native

I am trying to use React Query with React Native, according to the docs it should work out of the boxhttps://tanstack.com/query/v4/docs/react-nativeI did everything exactly like in the other project I...

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

How do I add a react landing page to a react app?

I have coded a landing page in react, and in a separate project a react/typescript app. How would I go about setting my website up so that when there's no user auth, the landing page and all its...

View Article
Browsing all 6287 articles
Browse latest View live


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