1

I created a react native app. Want i want to implement is a page that shows a user's twitter feed. If you look online, twitter offers this feature. However, the twitter example uses tag, and that is not supported in react-native. Does anyone know how to embed twitter feed in react native ?

<a class="twitter-timeline"
  href="https://twitter.com/twitterdev">
Tweets by @TwitterDev
</a>
AJ_
  • 3,787
  • 10
  • 47
  • 82

2 Answers2

3

Currently there is no React Native implementation for twitter feed.

You have 3 options:

  1. Implement it yourself using twitter API;
  2. Use WebView as described in this question;
  3. You can also wrap native Twitter Kit for iOS and Twitter Kit for Android as described in Native UI Components documentation.
Fancy John
  • 38,140
  • 3
  • 27
  • 27
0

Update 2023 now have an easy option to display tweets, just pass a url with the package: https://www.npmjs.com/package/react-native-twitter-preview

and usage:

<TwitterPreview
  url={'https://twitter.com/elonmusk/status/1636162726140493825'}
/>
Idan
  • 3,604
  • 1
  • 28
  • 33