@tactics/toddle-styleguide 3.0.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.tsx CHANGED
@@ -1,12 +1,3 @@
1
- // Needed to run Expo
2
- import registerRootComponent from 'expo/build/launch/registerRootComponent';
3
- import 'intl';
4
- import 'intl/locale-data/jsonp/en';
5
-
6
- import App from './App';
7
-
8
- registerRootComponent(App);
9
-
10
1
  // Exports of components
11
2
  import {Avatar} from './src/components/molecules/avatar/avatar.component';
12
3
  import {Button} from './src/components/molecules/button/button.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -1,4 +1,4 @@
1
- import {StyleSheet} from 'react-native';
1
+ import {Platform, StyleSheet} from 'react-native';
2
2
  import {Scale} from '../../../theme/scale/index';
3
3
 
4
4
  export const Stylesheet = (context, insets) =>
@@ -6,7 +6,7 @@ export const Stylesheet = (context, insets) =>
6
6
  container: {
7
7
  flexDirection: 'row',
8
8
  alignItems: 'center',
9
- justifyContent: 'center',
9
+ justifyContent: Platform.OS === 'web' ? 'space-around' : 'center',
10
10
  backgroundColor: context.colors.ui.xlightgrey,
11
11
  borderTopColor: context.colors.ui.lightgrey,
12
12
  borderStyle: 'solid',
@@ -11,7 +11,7 @@ export default function CreateResponsiveStyle<T, U extends Partial<T>>(
11
11
  return (layout: ScaledSize) =>
12
12
  (style: keyof T): StyleProp<any> => {
13
13
  if (layout.width > 768 && tablet.hasOwnProperty(style)) {
14
- return StyleSheet.compose(mobile[style], tablet[style]);
14
+ return [mobile[style], tablet[style]];
15
15
  } else return mobile[style];
16
16
  };
17
17
  }