···1919 typeof msgOrError === 'string' &&
2020 msgOrError.startsWith('Unexpected text node')
2121 ) {
2222+ if (
2323+ msgOrError ===
2424+ 'Unexpected text node: . A text node cannot be a child of a <View>.'
2525+ ) {
2626+ // This is due to a stray empty string.
2727+ // React already handles this fine, so RNW warning is a false positive. Ignore.
2828+ return
2929+ }
2230 const err = new Error(msgOrError)
2331 thrownErrors.add(err)
2432 throw err