Teaks and start deeplink parsing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user