react-grecaptcha icon indicating copy to clipboard operation
react-grecaptcha copied to clipboard

view config not found for name div

Open danishsharma1993 opened this issue 5 years ago • 0 comments

I am using this library but getting the below issue:

view config not found for name div

My source code:

import React, { Component } from 'react'
import { View, StyleSheet, Text } from 'react-native'
import Recaptcha from 'react-grecaptcha';

export default class Captcha extends Component {


    recaptchaLoaded=()=>{
        console.log("Capctcha","loaded")
    }

    expiredCallBack = () => {
        console.log("Capctcha", "expiredCallBack")
    }

    render() {
        return (
            <View style={styles.container}>
                <Text>Hiii</Text>

                <Recaptcha
                    sitekey={'MyKey'}
                    callback={this.recaptchaLoaded}
                    expiredCallback={this.expiredCallBack}

                />
                
            </View>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1
    }
})

danishsharma1993 avatar Mar 03 '20 18:03 danishsharma1993