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

276
Views
How to make QRCode Scanner Camera full screen

can someone help me to make my QR Scanner full screen, here my code :

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>
  )
}

enter image description hereresult of my code,

Thanks for helping me

I tried many ways to make my QR code scanner fullscreen, but i didn't work, please help me

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

0

Might be something wrong with the styles (truecontainer) you have given.

below code renders the camera in fullscreen mode.

<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!