Hi I'm trying to mock react-native modules, for example Dimensions.get, Stylesheet.create, Platform.OS, etc. I tried all the ways I found but none of them work, it seems like it doesn't detect the mocks for react-native, but the mocks from other libs work fine, like react-native-device-info. For example this and its variants don't work:
const Dimensions = {
get: jest.fn().mockReturnValue({width: 100, height:100})
}