expo linking.parse question

Hi, i am trying expo linking in my app and running into an issue. here is my code ;
React.useEffect(() => {
console.log(‘starting up’);
Linking.addEventListener(‘url’, handleOpenURL);

  }, []);
  handleOpenURL = (event) => { 
    console.log(event);
    let { path, queryParams } = Linking.parse(event);
    alert(`Linked to app with path: ${path} and data: ${JSON.stringify(queryParams)}`);
  }

when i pass this link(just to test in expo, i will use different link for standalone app):
exp://192.168.1.126:19000?variable1=123&variable2=456&variable3=store1

it give me error as follows:
error is really coming out in linking.parse…if i dont have that console.log event works and prints out the whole url. i am sure i am missing something basic here…can someone help please/
Invariant Violation: Invalid URL: should be a string. Was: [object Object]

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.