Closed BillyFigueroa closed 4 years ago
Constants being exporter in constants.js causing react-native-web to break
constants.js
Errors...
Try to use DropdownAlert in a project with react-native-web
react-native-web projects should not crash
Change the constants.js from....
module.exports = { DEFAULT_IMAGE_DIMENSIONS, WINDOW, HEIGHT, WIDTH, IS_IOS, IS_ANDROID, IS_IOS_BELOW_11, TYPE, ACTION, getDefaultStatusBarStyle, getDefaultStatusBarBackgroundColor, };
to this
export { DEFAULT_IMAGE_DIMENSIONS, WINDOW, HEIGHT, WIDTH, IS_IOS, IS_ANDROID, IS_IOS_BELOW_11, TYPE, ACTION, getDefaultStatusBarStyle, getDefaultStatusBarBackgroundColor, };
fixes the issue
@BillyFigueroa This relates to #204 which has been fixed in 4.2.0.
4.2.0
Short Description
Constants being exporter in
constants.js
causing react-native-web to breakErrors...
Steps to Reproduce / Code Snippets / Usage
Try to use DropdownAlert in a project with react-native-web
Expected Results
react-native-web projects should not crash
Additional Information
Solution
Change the constants.js from....
to this
fixes the issue