[email protected]
[email protected]
[email protected]
When we run
node node_modules\native-base\ejectTheme.js
The message is incorrect.
https://github.com/GeekyAnts/NativeBase/blob/master/ejectTheme.js#L13
Either there should be an index.js in src\theme, or the L13 above should be:
'import getTheme from \'./native-base-theme/components';',
Tested android, must also affect ios
The idea is to eject both the components as well as the variable folders. It seems to work fine. What exactly is the problem at your end? Are the folders not getting copied?
Hi,
The folders are copied, the issue is that the eject script message is incorrect:
import getTheme from './native-base-theme';
There is no longer an index.js in ./native-base-theme, so the import fails.
In order to make it work, one has to import from the components folder:
import getTheme from './native-base-theme/components';
Oops! Sorry. Will be fixed.
There is still an issue with the docs, it references the wrong path in the 2.0.0 Customize Docs. It threw me off:

@srhise i think there is no import getTheme from inside native-base-theme/components/index.js
@sankhadeeproy007
Most helpful comment
There is still an issue with the docs, it references the wrong path in the 2.0.0 Customize Docs. It threw me off: