-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetStarted scenario: web-support: Attempted import error: 'react-native' does not contain a default export (imported as 'ReactNative'). #155
Comments
Share |
config-overrides.js
|
I tried copying your package.json and config-overrides.js, couldn't reproduce |
Hi @SupriyaKalghatgi, we are experiencing the same issue. Please find attached a Sample.zip project as described by @ArThoX . |
Same problem exists for me. I'm getting the same error as OP's simply by following "Setup with Web" instructions on https://docs.nativebase.io/docs/GetStarted.html on a completely fresh project, then altering my
|
Same error here, simply by following the web-support official steps |
@SupriyaKalghatgi, I do confirm this is the same config as the /GetStarted page:
The "Setup with Web" basic scenario. |
Seems there is an issue how the Flow based libs are handled. As a hack we deleted the react-native-keyboard-aware-scroll-view from node_modules and edited the native-base/Content file to use react-native/KeyboardAvoidingView. This allows one to move ahead 'till we figure out the issue. |
The issue is not Native-Base's: When you follow NativeBase.io getting started guide, when doing the step FIX: notice react-native-web most be <0.11.0 which is 0.10.1 or 0.10.0 then
Fix #1258 necolas/react-native-web@69bd0f6 |
Good catch @achatainga! Appreciated! |
Installing and adding |
I got the error
As a workaround I removed the default import at KeyboardAwareHOC.js:5 and renamed
import {
Keyboard,
Platform,
UIManager,
TextInput,
findNodeHandle,
Animated
} from 'react-native'
const reactNode = findNodeHandle(nodeID) Right now, it's working until it's fixed. It's necessary to apply the fix on each package update until the package itself fixes the problem. |
'react-native-web' package has removed the default 'ReactNative' since v0.11.0
This will fix that issue, however the best solution is to update 'react-native-keyboard-aware-scroll-view' package to work flexibly with the latest version of 'react-native-web'. |
This worked for me. Thanks! |
Hi
Scenario:
App.js
an import to native-baseimport { Container } from "native-base";
yarn run start
Expected behavior
No error
Current behavior
Packages
Could you please advice ?
The text was updated successfully, but these errors were encountered: