fix tests

This commit is contained in:
sodik 2018-04-15 13:48:14 +02:00
parent 53607b0d58
commit 99e256c5bb
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,9 @@ const ScrollView = () => false;
const Platform = {
select: jest.fn(o => o.ios),
};
const PixelRatio = {
roundToNearestPixel: n => n,
}
ReactNative.View = View;
ReactNative.ScrollView = ScrollView;
@ -61,5 +64,6 @@ ReactNative.AppRegistry = AppRegistry;
ReactNative.Animated = Animated;
ReactNative.I18nManager = I18nManager;
ReactNative.Platform = Platform;
ReactNative.PixelRatio = PixelRatio;
module.exports = ReactNative;