Files
react-native-web/packages/website/storybook/1-components/Image/helpers.js
Nicolas Gallagher a8e5d43db5 Move 'website' to 'packages/website'
Keep all workspaces in the 'packages' directory.
2018-06-03 11:32:55 -07:00

31 lines
583 B
JavaScript

/**
* @flow
*/
// import React from 'react';
import { StyleSheet } from 'react-native';
const createUncachedURI = source => {
const helper = str => `${str}?t=${Date.now()}`;
const uri = typeof source === 'string' ? source : source.uri;
return typeof source === 'string' ? helper(uri) : { ...source, uri: helper(uri) };
};
const styles = StyleSheet.create({
base: {
height: 200,
width: 300
},
row: {
flexDirection: 'row'
},
centerRow: {
alignItems: 'center'
},
marginTop: {
marginTop: '1rem'
}
});
export { createUncachedURI, styles };