[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.25k
stars
429
forks
source link
Incompatible with React 16.3 Context Provider API #246
Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
🐛 Bug Report
To Reproduce
Following code:
will result in an error:
I caught this error when I was using
react-apollo@2.5.3
https://github.com/apollographql/react-apollo/releases/tag/v2.5.3:React installed in the project is at version
16.9.0
.I suspect it's because
react-native-macos
is far behind modernreact-native
which supports hooks and context API properly, see #226.Environment