We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting above mentioned error after installing the plugin to my project, this is how my app.js file looks like :
import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, TouchableOpacity } from 'react-native'; import { startCheckout } from 'react-native-checkout-mercadopago'; // const Mercadopago = NativeModules.CheckoutMercadoPagoModule; export default class App extends Component { render() { return ( <View style={styles.container}> <TouchableOpacity style={styles.button} onPress={() => this.callMercado()}> <Text>Press</Text> </TouchableOpacity> </View> ); } callMercado() { let payment = startCheckout('TEST-ad365c37-8012-4014-84f5-6c895b3f8e0a', '176234066-fc6d5d5e-2671-4073-ab49-362a98b720b5').then(success => { console.log("success") }, error => { console.log("error")}) // Mercadopago.startCheckout('TEST-ad365c37-8012-4014-84f5-6c895b3f8e0a', '176234066-fc6d5d5e-2671-4073-ab49-362a98b720b5').then(success => { console.log("success") }, error => { console.log("error")}); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, button: { borderWidth: 1, borderColor: 'rgba(0,0,0,0.2)', alignItems: 'center', justifyContent: 'center', width: 100, height: 100, backgroundColor: '#fff', borderRadius: 100, }, });
Please let know how can I resolve this error. I need to integrate this into my project it's my client requirement Regards
The text was updated successfully, but these errors were encountered:
@githubmss can you share the stack trace of the error?
Sorry, something went wrong.
Tengo el mismo problema
Same problem
No branches or pull requests
I am getting above mentioned error after installing the plugin to my project, this is how my app.js file looks like :
Please let know how can I resolve this error. I need to integrate this into my project it's my client requirement
Regards
The text was updated successfully, but these errors were encountered: