When attempting push notifications in expo react native, I encountered an error. I am using TypeScript.
This is the code I used: The error message indicates that "Property 'origin' does not exist on type '{}'.", and the same for ' data ". What could be causing this issue? I tried giving the data "as any", but it still did not work.
<Text>Origin: {(this.state.notification.origin)}</Text>
<Text>Data: {JSON.stringify(this.state.notification.data)}</Text>