Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
Get URL & Query from WebView's onNavigationStateChange event

Currently I am able to get the base URL of a page when clicked using the following WebView configuration

const handleUrlChange = (url:string) => {
   if (url == videUrl) return;

   setVideoUrl(url);
   console.log(url);
}; 

<WebView 
   startInLoadingState={true} 
   source={{ uri: 'https://m.youtube.com/'}} 
   onError={err => console.warn(err)}
   originWhitelist={['https://m.youtube.com/']}
   onNavigationStateChange={({ url }) => {
      urlChangeHandler(url)
   }}
/>

The problem is, the entire URL does not show.

When going to https://m.youtube.com/watch?v=aqz-KE-bpKQ only https://m.youtube.com/ returns as url. I need to be able to read watch?v=aqz-KE-bpKQ as well to identify which video a user has navigated to.

How can I retrieve the entire URL?

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda