Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
<div> tag in React Native?

I had quote generator project and I needed to include it in react-native project, but I don't know how to use . how can i fix this? How can I write this section as react native?

      <div class="container-fluid">
       
      <div class="row p-2 justify-content-center">
      <div class="col-md-6 d-flex justify-content-center align-items-center">

      <textarea readOnly class="quote" id="input"></textarea>
      </div>
      <div class="col-md-3 d-flex justify-content-center align-items-center mt-2"></div>
      </div>
      </div>
   
    
     <button id="copy">Copy</button><br></br>
     <button class="btn btn-primary" type="submit" id="tweetButton">Tweet</button>
   <div class="loader" id="loader"></div>

   <script src="getQuote.js"></script>

Quote Generator codes...

$(document).ready(function(){

var randomQuote, randomAuthor;

getQuote();

function getQuote(){

var quotes = ["It’s not my fault.", "Your focus determines your 
  reality.", "Do. Or do not. There is no try.", 
 "In my experience there is no such thing as luck.", "Fear leads to 
  anger, anger leads to hate, hate leads to suffering.", 
 "Women always figure out the truth. Always."]
  var authors = ["- Han Solo", "– Qui-Gon Jinn", "-Yoda", "- Obi-Wan 
  Kenobi", "-Yoda", "- Han Solo"]

var number = Math.floor((Math.random()*quotes.length));
randomQuote = quotes[number];
randomAuthor = authors[number];

$(".quote").text(randomQuote);
//$(".author").text(randomAuthor);

};

function copy() {
var copyText = document.querySelector("#input");
copyText.select();
document.execCommand("copy");
document.getElementById('copy').innerHTML="copied";

}

var el = document.getElementById('copy');
if(el){
el.addEventListener('click', copy);

}

$("#quoteButton").on("click", function(){ 
getQuote();

});

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

<View>      
      <View>
          <View>
           <Text></Text>
          </View>
      
      <View></View>
     
      </View>
   
    
     <Button >Copy</Button>
     <Button>Tweet</Button>
</View>

Check the doc

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda