diff options
Diffstat (limited to 'src/platform')
-rw-r--r-- | src/platform/polyfills.web.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/platform/polyfills.web.ts b/src/platform/polyfills.web.ts index 06fbe5cc4..462f65a26 100644 --- a/src/platform/polyfills.web.ts +++ b/src/platform/polyfills.web.ts @@ -19,6 +19,14 @@ if (process.env.NODE_ENV !== 'production') { typeof msgOrError === 'string' && msgOrError.startsWith('Unexpected text node') ) { + if ( + msgOrError === + 'Unexpected text node: . A text node cannot be a child of a <View>.' + ) { + // This is due to a stray empty string. + // React already handles this fine, so RNW warning is a false positive. Ignore. + return + } const err = new Error(msgOrError) thrownErrors.add(err) throw err |