Skip to content

Commit

Permalink
Merge pull request #219 from galio-org/dev
Browse files Browse the repository at this point in the history
v0.7.1
  • Loading branch information
palingheorghe authored Jul 6, 2020
2 parents 2e2fd91 + 58fbf8b commit 80514e6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Image, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
// galio components
import Block from './Block';
import Text from './Text';
import Icon from './Icon';
import Text from './atomic/ions/Text';
import Icon from './atomic/ions/Icon';
import GalioTheme, { withGalio } from './theme';

function Card({
Expand Down
7 changes: 3 additions & 4 deletions src/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import React from 'react';
import { View, TouchableOpacity, StyleSheet, Image } from 'react-native';
import PropTypes from 'prop-types';
// galio dependency
import Icon from './Icon';
import Text from './Text';
import Icon from './atomic/ions/Icon';
import Text from './atomic/ions/Text';
import GalioTheme, { withGalio } from './theme';

function Checkbox({
checkboxStyle,
checkboxStyle,
color,
disabled,
flexDirection,
Expand Down Expand Up @@ -62,7 +62,6 @@ function Checkbox({

// adding the check icon
function renderChecked() {

if (checked) {
return <Icon name={iconName} family={iconFamily} color={iconColor} size={iconSize} />;
}
Expand Down
8 changes: 4 additions & 4 deletions src/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import PropTypes from 'prop-types';

// galio components
import Block from './Block';
import Text from './Text';
import Icon from './Icon';
import Text from './atomic/ions/Text';
import Icon from './atomic/ions/Icon';
import GalioTheme, { withGalio } from './theme';

const { height } = Dimensions.get('screen');
Expand Down Expand Up @@ -47,12 +47,12 @@ function NavBar({

function renderLeft() {
if (!hideLeft) {
if (leftIconName || back && !left) {
if (leftIconName || (back && !left)) {
return (
<View style={[styles.left, leftStyle]}>
<TouchableOpacity onPress={() => onLeftPress && onLeftPress()} hitSlop={leftHitSlop}>
<Icon
family={leftIconFamily || "evilicons"}
family={leftIconFamily || 'evilicons'}
color={leftIconColor || theme.COLORS.ICON}
size={leftIconSize || theme.SIZES.BASE * 1.0625}
name={leftIconName || (back ? 'chevron-left' : 'navicon')}
Expand Down
8 changes: 3 additions & 5 deletions src/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { View, TouchableOpacity, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
// G A L I O - D E P E N D E N C Y
import Text from './Text';
import Text from './atomic/ions/Text';
import GalioTheme, { withGalio } from './theme';

function Radio({
Expand All @@ -20,7 +20,7 @@ function Radio({
theme,
}) {
const [checked, setChecked] = React.useState(initialValue);

// A D D I N G - R E Q U I R E D - S P A C E (S) - B A S E D - O N - F L E X - D I R E C T I O N
function spaceAround(direction) {
switch (direction) {
Expand All @@ -37,7 +37,6 @@ function Radio({

// R E N D E R - L A B E L
function renderLabel() {

const labelStyles = [
styles.textStyles,
disabled && styles.disabledLabel,
Expand All @@ -58,7 +57,6 @@ function Radio({
setChecked(current);
}


const containerStyles = [styles.container, flexDirection && { flexDirection }, containerStyle];

const whichColor =
Expand Down Expand Up @@ -134,7 +132,7 @@ Radio.defaultProps = {
initialValue: false,
label: null,
labelStyle: null,
onChange: () => { },
onChange: () => {},
styles: {},
theme: GalioTheme,
};
Expand Down
2 changes: 1 addition & 1 deletion src/Toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Dimensions, StyleSheet, Animated, ViewPropTypes } from 'react-native';
import PropTypes from 'prop-types';
// galio components
import Text from './Text';
import Text from './atomic/ions/Text';
import GalioTheme, { withGalio } from './theme';

const { height } = Dimensions.get('screen');
Expand Down

0 comments on commit 80514e6

Please sign in to comment.