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

173
Views
How to hide keyboard in React Native

I'm a novice developer. I have a project that requires a barcode scanner. which is developed with react native. I want to hide the keyboard. I can hide it but when I open the app and fold it and reopen it. My cursor is out of focus. And if I press any other area in the app, my cursor will not focus as well. I want to know why and solutions for this. Thank you for the advice :,

My app only works on android 7.

const dataInput = useRef(null)
const [data, setData] = useState('')

useEffect(() => {
    setData('')
    dataInput.current.focus()
  }, [isFoucs])


       <TextInput
          value={data}
          onChangeText={e => setData(e)}
          returnKeyType="go"
          ref={dataInput}
          onSubmitEditing={checkData}
          showSoftInputOnFocus={false}
        /> 

about 4 years ago · Juan Pablo Isaza
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!