Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Property 'origin' does not exist on type '{} In Expo and TypeScript

$
0
0

I got error when I tried push notifications in expo react native.I am using TypeScript

this is my code: in data and origin error appear: "Property 'origin' does not exist on type '{}'." also for data "Property 'data' does not exist on type '{}'. what the problem is? I give the data " as any" but still not working."

<Text>Origin: {(this.state.notification.origin)}</Text><Text>Data: {JSON.stringify(this.state.notification.data)}</Text>

Viewing all articles
Browse latest Browse all 6287

Trending Articles



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