Warning: <TEXT /> is using incorrect casing

console.error node_modules/react-dom/cjs/react-dom.development.js

Warning: <TEXT /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.

I have the issue with Jest and react-pdf

In the component where I'm using the react-pdf components this is written as: <Text>, but when performing the test it's appearing as <TEXT>

My component:

const HeaderPDF: React.FC<Props> = (props: Props) => {
  return (
    <View style={styles.headerContainer} fixed>
      <View style={styles.headerTop}>
        <Text style={styles.textBoldTopHeader}>
          "Some text"
        </Text>
        <View style={styles.headerTopInputContainer}>
          <View style={styles.headerTopInputTextContainer}>
            <Text style={styles.textInputTopHeader}>Route</Text>
          </View>
          <View style={styles.inputSmall} />
        </View>
      </View>
    </View>
  );
};

The test:

import React from 'react';
import { render } from 'tests/support/customRender';
import HeaderPDF from ../../HeaderPDF';

describe('HeaderPDF', () => {
  it('Renders a HeaderPDF component successfully', () => {
    const { container } = render(
      <HeaderPDF
        someProps
      />
    );
    expect(container).toMatchSnapshot();
  });
});