0
import React, {Component} from 'react';
import {StyleSheet, TouchableOpacity, Text, View} from 'react-native';
class Botao extends Component{
this.style = StyleSheet.create({}); // ESSE CODIGO TA PEDINDO PARA CRIAR UM CONSTRUTOR
render(){
    return(
        <TouchableOpacity>
            <View>
                <Text>Clique</Text>
            </View>
        </TouchableOpacity>
    );
  }
}
export default class App extends Component{
render() {
    return (
        <View>
            <Botao/>
        </View>
    );
  }
}
						
I believe outside the
construtorIt’s really not a good idea to use thethis, but the documentation talks about how you can create your style and import. https://facebook.github.io/create-react-app/docs/adding-a-stylesheet– Ricardo Lucas