Piroro-hs / react-native-twitter

A Twitter API client library for React Native. Currently not maintained as my main motivation of creating this library was to use the User Streams API.
MIT License
39 stars 20 forks source link

Use Stream API in background #9

Closed CodeMogul closed 4 years ago

CodeMogul commented 7 years ago

Hello,

I am new to react-native and developing an Android application that notifies the user, if someone from a list of users tweet.

I was able to use the Streaming and REST API's provided by react-native-twitter, and also show notifications using react-native-push-notification separately.

Is it possible to use the stream (using event-emitter) in background state of the app and notify the users when tweets arrive? Could someone share a sample for the same.