From 194619921b1e81b524036c6cd40ab15458af2a9c Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Tue, 30 Jan 2018 20:36:30 -0500 Subject: [PATCH] Fix tests. --- __snapshots__/FastImage.test.js.snap | 1 + example/fastImage/ImageGrid.js | 2 +- example/fastImage/StatusBarUnderlay.js | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/__snapshots__/FastImage.test.js.snap b/__snapshots__/FastImage.test.js.snap index 0e91b52..f981ea7 100644 --- a/__snapshots__/FastImage.test.js.snap +++ b/__snapshots__/FastImage.test.js.snap @@ -17,5 +17,6 @@ exports[`FastImage renders correctly. 1`] = ` "uri": "https://facebook.github.io/react/img/logo_og.png", } } + style={undefined} /> `; diff --git a/example/fastImage/ImageGrid.js b/example/fastImage/ImageGrid.js index af0806b..98bc5c8 100644 --- a/example/fastImage/ImageGrid.js +++ b/example/fastImage/ImageGrid.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import { FlatList, StyleSheet, Text, View, } from 'react-native' +import { FlatList, StyleSheet, Text, View } from 'react-native' import StatusBarUnderlay, { STATUS_BAR_HEIGHT } from './StatusBarUnderlay' const getImageUrl = (id, width, height) => diff --git a/example/fastImage/StatusBarUnderlay.js b/example/fastImage/StatusBarUnderlay.js index 02035a0..c94ba9e 100644 --- a/example/fastImage/StatusBarUnderlay.js +++ b/example/fastImage/StatusBarUnderlay.js @@ -1,7 +1,8 @@ import React from 'react' import { Platform, StatusBar, StyleSheet, View } from 'react-native' -export const STATUS_BAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBar.currentHeight +export const STATUS_BAR_HEIGHT = + Platform.OS === 'ios' ? 20 : StatusBar.currentHeight export default () => @@ -14,4 +15,4 @@ const styles = StyleSheet.create({ height: STATUS_BAR_HEIGHT, backgroundColor: 'white', }, -}) \ No newline at end of file +})