Babban matsalar tsayin na'urar yana amsawa na asali shine cewa yana iya zama da wahala a kula da matsayin yatsan mai amfani yayin da suke gogewa da gungurawa. Wannan na iya yin wahala ga app ษin ya ba da amsa daidai ga abubuwan da suka nuna, wanda zai iya haifar da abubuwan takaici.
To get the device height in React Native, you can use the Dimensions API: const { height } = Dimensions.get('window');
Wannan layin lambar yana amfani da Dimensions API don samun tsayin taga na'urar.
Sami Nisa Tsayin Na'ura a cikin React Native
A cikin React Native, zaku iya samun tsayin na'urar da faษin ta amfani da lambar mai zuwa:
var deviceHeight = taga.innerHeight; var deviceWidth = taga.innerWidth;