diff options
author | George Rusu <george@tagg.id> | 2021-05-18 16:28:06 -0700 |
---|---|---|
committer | George Rusu <george@tagg.id> | 2021-05-18 16:28:06 -0700 |
commit | 8fa476d8c1ee508c252b4d73901a75cb2c39bf75 (patch) | |
tree | 386f75f63b8f1127e35a8f539ff9d7432be06b3a /src/screens/profile/CaptionScreen.tsx | |
parent | 458b01324dcf9ce8fdfdbf9999986390e506e23a (diff) | |
parent | 7e93ac3f0b2b6b1509d95d020a3138968ac1cfc7 (diff) |
merge
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> |