testshallpass / react-native-dropdownalert

An alert to notify users about an error or something else
MIT License
1.86k stars 253 forks source link

[react-native-web] Cannot assign to read only property #204

Closed sabaturgay closed 5 years ago

sabaturgay commented 5 years ago

Short Description

Hi, When I used the component with react-native-web. There is an error like ' Cannot assign to read only property 'exports' of object '#'. Then I just changed your export type like module.exports to export const in constant.js file. I tried it worked. If you can change this in the repo , it will be nice. Thank you for your time.

Additional Information

testshallpass commented 5 years ago

Okay I will adopt export as defined: https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export similar to what you said.

sabaturgay commented 5 years ago

Okay I will adopt export as defined: https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export similar to what you said.

Thank you. I will try it as soon as possible.