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

191
Vistas
Exporting Text is showing a Render Error in React Native

I have made a components library for ReactNative using react-native-builder-bob for packaging. With some components like Button, Image, etc is working great, but when I try to import a Text component is failing and showing this error:

View config getter callback for component 'RCTTEXT' must be a function (receive undefined)

If in the project where I import this component do some change, the view is refreshed and the error dissapears, but every time I run the project for first time this error is shown.

Here is the imported component:

import {Text} from 'react-native';

export const MyText = ({...props}) => <Text {...props} />;

And after, this is the way I import this component in another app:

import { MyText } from 'my-library'

export const Example = () => {
   return <MyText>Hello</MyText>
}

I was searching for the error of 'View config getter....' and the only I found is, provocated by importing error, but only happens with this component.

What thing could be provocating this error?

Thanks in advance

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Try using your custom text component like this.

import {Text} from 'react-native';

export const MyText = ({children, ...props}) => <Text {...props}>{children}</Text>;

Hope it will solve your problem.

about 4 years ago · Juan Pablo Isaza Denunciar

0

well....finally I found the error. Everything is all great from my library of components, but, apparently, in my component library I have the react-native version 0.68.0 and, in the app where I was importing this components I had a lower version (0.67.3). If I use the same version, it is working!

about 4 years ago · Juan Pablo Isaza Denunciar
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