Error executing a react-native project and firebase

0

Good morning / early morning, I'm having the error while giving react-native run-android

thecodeisthis

importfirebasefrom'firebase';importReact,{Component}from'react';import{Text,View,Button}from'react-native';exportdefaultclassAppextendsComponent{componentDidMount(){varconfig={apiKey:"AIzaSyCrI-yOVMpn4SSzaAaiCmcZxPSsjS1mIYE",
            authDomain: "configuracaofirebasereac-1fcea.firebaseapp.com",
            databaseURL: "https://configuracaofirebasereac-1fcea.firebaseio.com",
            projectId: "configuracaofirebasereac-1fcea",
            storageBucket: "configuracaofirebasereac-1fcea.appspot.com",
            messagingSenderId: "61563493608";
        };
        firebase.initializeApp(config)
    }

    render() {
        return (
            <View>
                <Text>Olá Mundo</Text>
            </View>
        );
    }
 } 

And I can not figure out how to fix it, can someone please give me a hand?

    
asked by anonymous 21.10.2018 / 06:54

0 answers