2

I am writing a test code on responsiveStyles but I am in trouble because I don't know how to get device width by Jest(testCode)

Xcode Simlulator is quite do well reponsiveStyles but Jest Code isn't changed while device is changed

export const deviceWidth = Dimensions.get('window').width / PixelRatio.get();
export const devieceHeight = Dimensions.get('window').height / PixelRatio.get();
Deep Kakkar
  • 5,831
  • 4
  • 39
  • 75
Dali
  • 31
  • 4

0 Answers0