Skip to content

Commit 15fb27e

Browse files
committed
m
1 parent 4eea7fa commit 15fb27e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

patch-rn.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const { promisify } = require('util');
55
const glob = require('glob');
66

77
const pattern = new RegExp(
8-
'invariant\\([\\s\\S]' +
9-
'hostContext\\.isInAParentText,[\\s\\S]' +
10-
'"Text strings must be rendered within a <Text> component\\."[\\s\\S]' +
8+
'invariant\\([\\s\\S]+' +
9+
'(hostContext|type)\\.isInAParentText,[\\s\\S]+' +
10+
'"Text strings must be rendered within a <Text> component\\."[\\s\\S]+?' +
1111
'\\);'
1212
);
1313

0 commit comments

Comments
 (0)