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

161
Vistas
Forcefully update the component on updated value inside the render method react native

I am trying to forcefully rerender the complete component on value change inside the render function. Below is a sample code to explain my problem. Profile component I am calling after the login and it's called and two functions inside this getting called and the value is set in the state. Now I am on another screen where I am updating mssidnNumber inside the context and that change I can see in the Profile render() function val. let val = this.context.mssidnNumber; and this val value will change on condition so on this basis I am trying to rerender the complete Profile component again so all values will update. How can I do this please help? Is that possible?

    import React, { Component } from 'react';
    import { View} from 'react-native';
    
    class Profile extends Component {
      constructor(props) {
        super(props);
    
      }
      async componentDidMount() {
      this.Profilefunction();
      }
      
      Profilefunction = () =>{
      
      this.setState({})
      await this.profile2fucntion();
      }
      
      profile2fucntion =() => {
      }
    
      render() {
      let val = this.context.mssidnNumber;
        return (
          <View>
    
          </View>
        );
      }
    }
    
    export default Profile;
about 4 years ago · Juan Pablo Isaza
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