(0 , _ScaledSheet.default) is not a function
jindong5210 opened this issue · comments
Hello
Wierd error accurs. when I import extend lib.
.env
SIZE_MATTERS_BASE_WIDTH=750
SIZE_MATTERS_BASE_HEIGHT=1336
app.js
import { ScaledSheet } from 'react-native-size-matters/extend';
(0 , _ScaledSheet.default) is not a function
<unknown>
extend.js:4:46
loadModuleImplementation
require.js:302:4
guardedLoadModule
require.js:203:11
metroRequire
require.js:122:6
<unknown>
App.js:9
loadModuleImplementation
require.js:302:4
guardedLoadModule
require.js:203:11
metroRequire
require.js:122:6
<unknown>
index.js:6
loadModuleImplementation
require.js:302:4
"react": "16.8.6",
"react-native": "0.60.5",
It works fine when I copy it to local folder.
Will it work without the extend
? (import { ScaledSheet } from 'react-native-size-matters';
).
What version of react-native-size-matters are you using?
It works fine without extend
The version is:
"react-native-size-matters": "^0.2.1",
@jindong5210 Maybe you can try to update the lib to v0.3.0, because i work with that version, and extend functionality work fine
Gonna close this for now as it doesn't seem to reproduce for others.