Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda