Open jony-w opened 7 years ago
@jonyshi I have the same issue too.. :(
Make sure to follow the README for the Android setup. I got this error then added
import com.remobile.toast.RCTToastPackage;
and
new RCTToastPackage()
to MainApplication.java and it worked
package.json
"dependencies": { "@remobile/react-native-toast": "^1.0.5", }
use
import Toast from '@remobile/react-native-toast'; render() { return ( <TouchableOpacity onPress={Toast.showShortTop.bind(null, "this is a message")}>
}
error: undefined is not an object(evaluating 'RECTToast.show') cannot read property 'show' of undefined May I ask what is the reason?