diff options
author | Brian Kim <brian@tagg.id> | 2021-05-18 16:21:21 -0700 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-05-18 16:21:21 -0700 |
commit | 7e93ac3f0b2b6b1509d95d020a3138968ac1cfc7 (patch) | |
tree | a0fc86356979bf437c7e79eac8b2511bb56920c4 /src/screens/profile/CaptionScreen.tsx | |
parent | 3a585b1bee36168fb2f33ae889bc5f207f25f793 (diff) |
Messing around with captionscreen
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index a41abba6..50b60024 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -29,6 +29,8 @@ import {RootState} from '../../store/rootReducer'; import {SCREEN_WIDTH, StatusBarHeight} from '../../utils'; import {mentionPartTypes} from '../../utils/comments'; +import TaggDraggable from '../../components/taggs/TaggDraggable'; + /** * Upload Screen to allow users to upload posts to Tagg */ @@ -47,6 +49,7 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { const { user: {userId}, } = useSelector((state: RootState) => state.user); + console.log(userId); const dispatch = useDispatch(); const [caption, setCaption] = useState(''); const [loading, setLoading] = useState(false); @@ -118,6 +121,16 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { onChange={setCaption} partTypes={mentionPartTypes('blue')} /> + <TaggDraggable + draggable={true} + minX={0} + minY={0} + maxX={50} + maxY={50} + taggedUser={user} + redirect={true} + deleteFromList={() => console.log('Hello world')} + /> </View> </KeyboardAvoidingView> </TouchableWithoutFeedback> |