Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
Cómo hacer que la cámara QRCode Scanner esté a pantalla completa

Alguien me puede ayudar a hacer mi escáner QR a pantalla completa, aquí mi código:

 const App = () => { const [scan,setScan] = useState(false) const SCREEN_HEIGHT = Dimensions.get('window').height return !scan ? ( <View style={styles.falsecontainer}> <Pressable onPress={()=>setScan(true)}> <Text style={styles.startButton}>Start Scan</Text> </Pressable> </View> ):( <View style={styles.truecontainer}> <QRCodeScanner cameraStyle={[{height:SCREEN_HEIGHT}]} /> </View> ) } 

ingrese la descripción de la imagen aquí resultado de mi código,

Gracias por ayudarme

Intenté muchas formas de hacer que mi escáner de código QR esté en pantalla completa, pero no funcionó, por favor ayúdenme

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Podría haber algún problema con los estilos (truecontainer) que ha proporcionado.

El siguiente código muestra la cámara en modo de pantalla completa.

 <View style={{ flex: 1, backgroundColor: 'red' }}> <QRCodeScanner cameraStyle={{ height: height, width: width }} /> </View>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!