diff options
author | Ivan Chen <ivan@thetaggid.com> | 2020-10-22 17:42:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 17:42:29 -0400 |
commit | 52a3fe743e6122d157eaab3ad7bab0c70a96676b (patch) | |
tree | 564c5df3864a0d0fe09f7c18613d4cf5a1093170 /src/components/taggs/TaggsBar.tsx | |
parent | 08f9aebbaef871629323767c93c9e54cea527bed (diff) |
[TMA-242] Twitter and Facebook Tagg View (#63)
* modified the way we store social media data, initial skeleton
* MVP? Twitter done?
* cleaned up some things
* forgot to lint and cleaned up some more code
* minor change to text display
* fixed some UI bug, linting, and minor adjustment to posts UI
* fixed a couple of things
* added DateLabel, Facebook taggs view, fixed minor stuff
* Some small changes for the PR
* removed unused Feed
Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
-rw-r--r-- | src/components/taggs/TaggsBar.tsx | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx index 933f355d..88f670b5 100644 --- a/src/components/taggs/TaggsBar.tsx +++ b/src/components/taggs/TaggsBar.tsx @@ -18,9 +18,40 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ isProfileView, }) => { const taggs: Array<JSX.Element> = []; - for (let i = 0; i < 10; i++) { + + taggs.push( + <Tagg + key={0} + style={styles.tagg} + social={'Instagram'} + isProfileView={isProfileView} + />, + ); + taggs.push( + <Tagg + key={1} + style={styles.tagg} + social={'Facebook'} + isProfileView={isProfileView} + />, + ); + taggs.push( + <Tagg + key={2} + style={styles.tagg} + social={'Twitter'} + isProfileView={isProfileView} + />, + ); + + for (let i = 3; i < 10; i++) { taggs.push( - <Tagg key={i} style={styles.tagg} isProfileView={isProfileView} />, + <Tagg + key={i} + style={styles.tagg} + social={'Instagram'} + isProfileView={isProfileView} + />, ); } const shadowOpacity: Animated.Node<number> = interpolate(y, { |