When using in react native, there is a type error coming up referring to this interface:
/**
* The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
*/
interface Text extends CharacterData, Slottable {
/**
* Returns the combined data of all direct Text node siblings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
*/
readonly wholeText: string;
/**
* Splits data at the given offset and returns the remainder as Text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
*/
splitText(offset: number): Text;
}
in /Applications/Cursor.app/Contents/Resources/app/extensions/node_modules/typescript/lib/lib.dom.d.ts
Instead of the native Text Component in react native
1) If you can, please include a screenshot of your problem
2) Please include the name of your operating system
macOS 14.2 (23C64)
3) If you can, steps to reproduce are super helpful
When using in react native, there is a type error coming up referring to this interface:
in /Applications/Cursor.app/Contents/Resources/app/extensions/node_modules/typescript/lib/lib.dom.d.ts
Instead of the native Text Component in react native
1) If you can, please include a screenshot of your problem
2) Please include the name of your operating system
macOS 14.2 (23C64)
3) If you can, steps to reproduce are super helpful