Skip to content

Commit 1743ed9

Browse files
authored
fix path-rn.js for release build
ReactNativeRender-prod.js ReactNativeRender-profiling.js have different form to check invariant: invariant( type.isInAParentText, "Text strings must be rendered within a <Text> component." ),
1 parent e11aab8 commit 1743ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch-rn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const pattern = new RegExp(
1010
'invariant\\([\\s\\S]{0,20}' +
1111
'(hostContext|type)\\.isInAParentText,[\\s\\S]{0,20}' +
1212
'"Text strings must be rendered within a <Text> component\\."[\\s\\S]{0,20}' +
13-
'\\);'
13+
'\\)[;,]'
1414
);
1515

1616
const patchFile = async (file) => {

0 commit comments

Comments
 (0)