From 919000b52d700592031aa8f2874148893628531d Mon Sep 17 00:00:00 2001 From: Vassilis Kourtis Date: Tue, 11 May 2021 15:59:13 +0300 Subject: [PATCH] Fix README full example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c8708af..9ed66c1 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ import RNEventSource from 'react-native-event-source'; class MyApp extends Component { componentDidMount() { - this.eventSource = new EventSource('https://sse.com/stream'); + this.eventSource = new RNEventSource('https://sse.com/stream'); // Grab all events with the type of 'message' this.eventSource.addEventListener('message', (data) => {