We can use this package by patching react-native using patch-package
And adding react-native+0.63.3.patch file in patches directory
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
index 2a462f4..43471ca 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
@@ -3850,9 +3850,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText) {
- throw Error("Text strings must be rendered within a <Text> component.");
- }
var tag = nextReactTag;
nextReactTag += 2;
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
index 8e2baed..c177949 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
@@ -3851,9 +3851,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText) {
- throw Error("Text strings must be rendered within a <Text> component.");
- }
var tag = nextReactTag;
nextReactTag += 2;
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
index 278eba5..fce3887 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
@@ -1547,8 +1547,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText)
- throw Error("Text strings must be rendered within a <Text> component.");
hostContext = nextReactTag;
nextReactTag += 2;
return {
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
index 7df0e13..af6fcfe 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
@@ -1548,8 +1548,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText)
- throw Error("Text strings must be rendered within a <Text> component.");
hostContext = nextReactTag;
nextReactTag += 2;
return {
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
index be0ac55..af25b02 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
@@ -1548,8 +1548,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText)
- throw Error("Text strings must be rendered within a <Text> component.");
hostContext = nextReactTag;
nextReactTag += 2;
return {
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
index cc076b1..388985d 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
@@ -1549,8 +1549,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText)
- throw Error("Text strings must be rendered within a <Text> component.");
hostContext = nextReactTag;
nextReactTag += 2;
return {
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
index 8ef9be3..bbdaa99 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
@@ -4035,9 +4035,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText) {
- throw Error("Text strings must be rendered within a <Text> component.");
- }
var tag = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
index d837754..9980be5 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
@@ -4036,9 +4036,6 @@ function createTextInstance(
hostContext,
internalInstanceHandle
) {
- if (!hostContext.isInAParentText) {
- throw Error("Text strings must be rendered within a <Text> component.");
- }
var tag = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
index f32dc56..acdd6a5 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
@@ -4603,10 +4603,6 @@ function completeWork(current, workInProgress, renderExpirationTime) {
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
current = requiredContext(rootInstanceStackCursor.current);
- if (!requiredContext(contextStackCursor$1.current).isInAParentText)
- throw Error(
- "Text strings must be rendered within a <Text> component."
- );
rootContainerInstance = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
rootContainerInstance,
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
index 31b089c..cb7b67b 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
@@ -4604,10 +4604,6 @@ function completeWork(current, workInProgress, renderExpirationTime) {
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
current = requiredContext(rootInstanceStackCursor.current);
- if (!requiredContext(contextStackCursor$1.current).isInAParentText)
- throw Error(
- "Text strings must be rendered within a <Text> component."
- );
rootContainerInstance = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
rootContainerInstance,
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
index 2bac9e2..3da0259 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
@@ -4654,10 +4654,6 @@ function completeWork(current, workInProgress, renderExpirationTime) {
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
current = requiredContext(rootInstanceStackCursor.current);
- if (!requiredContext(contextStackCursor$1.current).isInAParentText)
- throw Error(
- "Text strings must be rendered within a <Text> component."
- );
rootContainerInstance = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
rootContainerInstance,
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
index c817401..e59ac11 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
@@ -4655,10 +4655,6 @@ function completeWork(current, workInProgress, renderExpirationTime) {
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
);
current = requiredContext(rootInstanceStackCursor.current);
- if (!requiredContext(contextStackCursor$1.current).isInAParentText)
- throw Error(
- "Text strings must be rendered within a <Text> component."
- );
rootContainerInstance = allocateTag();
ReactNativePrivateInterface.UIManager.createView(
rootContainerInstance,
diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env
new file mode 100644
index 0000000..361f5fb
--- /dev/null
+++ b/node_modules/react-native/scripts/.packager.env
@@ -0,0 +1 @@
+export RCT_METRO_PORT=8081
We can use this package by
patching
react-native usingpatch-package
And adding
react-native+0.63.3.patch
file inpatches
directory