Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Libraries/Renderer/implementations/ReactFabric-dev.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5110,7 +5110,7 @@ function createTextInstance(
) {
{
if (!hostContext.isInAParentText) {
error("Text strings must be rendered within a <Text> component.");
error(`Text string "${text}" must be rendered within a <Text> component.`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Libraries/Renderer/implementations/ReactFabric-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -4947,7 +4947,7 @@ function createTextInstance(
internalInstanceHandle
) {
if (!hostContext.isInAParentText) {
throw Error("Text strings must be rendered within a <Text> component.");
throw Error(`Text string "${text}" must be rendered within a <Text> component.`);
}

var tag = nextReactTag;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Renderer/implementations/ReactFabric-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ function createTextInstance(
internalInstanceHandle
) {
if (!hostContext.isInAParentText)
throw Error("Text strings must be rendered within a <Text> component.");
throw Error(`Text string "${text}" must be rendered within a <Text> component.`);
hostContext = nextReactTag;
nextReactTag += 2;
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ function createTextInstance(
internalInstanceHandle
) {
if (!hostContext.isInAParentText)
throw Error("Text strings must be rendered within a <Text> component.");
throw Error(`Text string "${text}" must be rendered within a <Text> component.`);
hostContext = nextReactTag;
nextReactTag += 2;
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5258,7 +5258,7 @@ function createTextInstance(
internalInstanceHandle
) {
if (!hostContext.isInAParentText) {
throw new Error("Text strings must be rendered within a <Text> component.");
throw Error(`Text string "${text}" must be rendered within a <Text> component.`);
}

var tag = allocateTag();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5095,7 +5095,7 @@ function createTextInstance(
internalInstanceHandle
) {
if (!hostContext.isInAParentText) {
throw Error("Text strings must be rendered within a <Text> component.");
throw Error(`Text string "${text}" must be rendered within a <Text> component.`);
}

var tag = allocateTag();
Expand Down