This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { createStackNavigator } from 'react-navigation'; | |
import browserPollyfill from 'react-native-browser-polyfill'; | |
import { Welcome, Feed } from './screens'; | |
const RootStack = createStackNavigator({ | |
Welcome: { | |
screen: Welcome, | |
navigationOptions: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create-react-native-app test && cd test && yarn add expo-activity-feed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn global add create-react-native-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.crawl = () => { | |
twitterClient.get( | |
'search/tweets', | |
{ q: '@FlyFrontier', count: 100 }, | |
(err, data, res) => { | |
data.statuses.map(status => { | |
streamClient | |
.feed('timeline', 'all') | |
.addActivity({ | |
actor: streamClient.collections.createUserReference( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.token = (event, context, callback) => { | |
const data = JSON.parse(event.body); | |
const token = streamClient.createUserSessionToken(data.user); | |
const response = { | |
statusCode: 200, | |
body: JSON.stringify({ token: token }) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CommentBox | |
onSubmit={text => | |
props.onAddReaction( | |
'comment', | |
props.activity, | |
{ | |
data: { text: text } | |
} | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
<CommentList | |
reactions={props.activity.latest_reactions} | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LikeButton {...props} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Activity={props => ( | |
<Fragment> | |
<Activity | |
{...props} | |
Footer={ | |
<View | |
style={{ | |
flexDirection: 'row', | |
alignItems: 'center' | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FlatFeed | |
feedGroup="timeline" | |
Activity={props => ( | |
... | |
)} | |
/> |