Teaks and start deeplink parsing

This commit is contained in:
Adolfo Reyna
2023-03-10 20:30:48 -06:00
parent 21f987a5a5
commit 3f44076709
5 changed files with 69 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ let NewPostView = (props) => {
const navigation = useNavigation();
useEffect(() => {
console.log(props)
let subscribed = true;
const getProfileData = async () => {
if (!props.route.params?.toProfile) return 0;
@@ -24,12 +25,16 @@ let NewPostView = (props) => {
if (!subscribed) return 0;
setToProfile(profileObj);
});
if(props.route.params?.sendNow){
console.log("sending from tab bar button")
await handleNewPostButton()
}
};
getProfileData();
return () => {
subscribed = false;
}
}, []);
}, [props.route.params?.sendNow]);
const pickImage = async () => {
// No permissions request is necessary for launching the image library