1

when i use this code in goole console it works like this

enter image description here

but when i use same code in react-native there is only data in _url like this

I want to get values ​​from searchParams.

enter image description here

this is my code

    const Kakao = ({navigation}) => {
      useEffect(() => {
        Linking.addEventListener('url', async ({url}) => {
          const urll =  new URL(
            'demo://app?accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6bnVsbCwicHJvdmlkZXIiOiJrYWthbyIsImlhdCI6MTYxODM5NDgwNX0.GfYs5rt0tjBrUmNvNIT6Bn_7TlJfY7zF9NxvkdqeTE0/',
          );

          console.log('urll.search', urll.search);

        });
        return () => Linking.removeEventListener('url');
      }, []);

how can i fix my code to get a urll.search data ???

user15322469
  • 841
  • 1
  • 8
  • 31

0 Answers0