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

Streaming API's are not supported in iOS #21

Open lingxiao opened 6 years ago

lingxiao commented 6 years ago

In Timeline.js (https://github.com/Piroro-hs/react-native-twitter/blob/master/example/src/components/Timeline.js#L14), the line this.props.twitter.stream('user').on('data', (data) => { ... }) fails with error: Streaming APIs are not supported on iOS, even though there's no explicit code checking for OS in the class. I am on react-native 0.56 with Expo.

Ahh I see in the docs it says android only. Is there a comparable API on iOS?