Error on realtime service in react native #4893
-
Error:Property 'EventSource' doesnt exist How to use realtime service in react native? |
Beta Was this translation helpful? Give feedback.
Answered by
ganigeorgiev
May 10, 2024
Replies: 1 comment
-
This was answered several times. Please search for the other similar discussions. In general you need to register import eventsource from "react-native-sse";
global.EventSource = eventsource; Additionally, if you are testing on Android you may have to disable Flipper. See the links in #2484 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
apujayed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was answered several times. Please search for the other similar discussions.
In general you need to register
EventSource
polyfill, ex.react-native-sse
:Additionally, if you are testing on Android you may have to disable Flipper. See the links in #2484 (reply in thread)