An Warware: Girman suna amsawa na asali

Babban matsalar da ke da alaฦ™a da girma da ke amsa ษ—an ฦ™asa shine cewa suna iya zama da wahala a yi aiki da su.

In React Native, dimensions can be retrieved with the Dimensions API:

const { width, height } = Dimensions.get('window');

Wannan layin lambar yana amfani da Dimensions API don dawo da faษ—i da tsayin 'taga'. Sannan ana adana faษ—in da tsayi a cikin dindindin.

amfani da WindowDimension

React Native yana ba ku damar saita girman taga ta amfani da WindowDimension. Ana amfani da wannan kadarar don saita faษ—i da tsayin taga React Native.

Shafi posts:

Leave a Comment