code: function performResize(deviceInfo) {
    const {windowPhysicalPixels} = deviceInfo;
    const {width, height} = windowPhysicalPixels;
  
    // Force RN to re-set the Dimensions sizes
    Dimensions.set({windowPhysicalPixels});
    console.log(`Resizing window to physical pixels ${width}x${height}`);
    // TODO: Android uses screenPhysicalPixels - see https://github.com/facebook/react-native/blob/master/Libraries/Utilities/Dimensions.js
  }
docs: Force resize of Dimensions.get by using the setter.