react-native-button-component icon indicating copy to clipboard operation
react-native-button-component copied to clipboard

Error Occurred in the new version: In this environment the sources for assign MUST be an object.

Open tikkichan4 opened this issue 8 years ago • 8 comments

Exception

This exception is occurred on both platform. I think it should be the new version bugs since i used react-native-button-component for 3 weeks before and it works normally .

tikkichan4 avatar Jun 29 '17 06:06 tikkichan4

How are you doing the import? import ButtonComponent from 'react-native-button-component' or import { ButtonComponent } from 'react-native-button-component'?

Sorgrum avatar Aug 19 '17 13:08 Sorgrum

@Sorgrum import ButtonComponent from 'react-native-button-component'

jacklam718 avatar Aug 19 '17 13:08 jacklam718

@Sorgrum Did you upgrade React or React Native version?

jacklam718 avatar Aug 19 '17 13:08 jacklam718

@Sorgrum Is it working? Any issue?

jacklam718 avatar Aug 19 '17 17:08 jacklam718

@jacklam718 I didn't have this issue with this project. But I had this error message before and I think that my import statement is what caused it.

Sorgrum avatar Aug 19 '17 20:08 Sorgrum

@Sorgrum This import ButtonComponent from 'react-native-button-component' import statement is works for you?

jacklam718 avatar Aug 20 '17 05:08 jacklam718

@jacklam718 I'm not using the project. I was having a different error with the project so I built my own button component because my needs are simple enough that I don't need anything too complex right now. I had the same error with a different library and the import statement was causing the error.

Sorgrum avatar Aug 20 '17 14:08 Sorgrum

@Sorgrum Thanks for providing the important information

jacklam718 avatar Aug 21 '17 09:08 jacklam718