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

225
Views
Failed to compile after using"expo-constants" in react-native

I have created a React Native app using expo commands as expo init ProjectNameand in this project I have used expo-constants using npm i expo-constants commands . But now I converted this app to newly using npx react-native init ProjectName so that I can easily make APK file.

I imported expo-constants as below:

import Constants from 'expo-constants';
const StatusBarHeight = Constants.statusBarHeight;

Note: The error is given in attached file.

Please Concern Here: Which Package should I use instead of expo-constants when I would used npx react-native init ProjectName command to create a react-native app? Advanced Thanks!

enter image description here

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!