How can I get android or Ios version?

#1

Hello there.

I am a beginner on the Expo and
I’d like to get the android and ios version with EXPO.

Is there any way to get these Info?

Thanks

#2

I think this will help you: https://docs.expo.io/versions/latest/sdk/constants#model-37

#3

Hety @great999lancer
This is your code for getting version.

const pkg = require(’…/…/package.json’);

<View style={{ marginBottom: SCREEN_HEIGHT / 30, justifyContent: ‘center’, alignItems: “center” }}>

<Text style={{ color: ‘rgba(63, 174, 135,0.9)’ }}>{Version : ${pkg.version}}</Text>

</View>

let me know that it is helpful for you or not ?
good luck.

#5

Thanks it works. :slight_smile:

#6

Welcome. Good Luck

closed #7

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.