docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
sequencelengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
<Box ml={Math.floor(innerButtonProps.px / 2) || 2}>{rightIcon}</Box> | <mask> {children}
<mask> </Text>
<mask> )}
<mask> {rightIcon ? (
<mask> <Box ml={innerButtonProps.px / 2 || 2}>{rightIcon}</Box>
<mask> ) : null}
<mask> </Box>
<mask> );
<mask>
<mask> const ariaProps = useButton(
</s> feat: fixed icon button margins </s> remove <Button key={size} size={size} colorScheme="teal">
</s> add <Button
key={size}
size={size}
colorScheme="coolGray"
variant="outline"
isDisabled
> </s> remove <Box mr={innerButtonProps.px / 2 || 2}>{leftIcon}</Box>
</s> add <Box mr={Math.floor(innerButtonProps.px / 2) || 2}>{leftIcon}</Box> </s> remove leftIcon={<Icon name="menu" size={6} type="MaterialIcons" />}
colorScheme="indigo"
</s> add leftIcon={
<Icon name="menu" color="white" size={6} type="MaterialIcons" />
}
colorScheme="blue" | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/930b9bce72eadcc4a0ecb6fe96fd01d4532e07e2 | src/components/primitives/Button/index.tsx |
<Icon
name="calendar-today"
size="md"
my={3}
ml={3}
color="muted.500"
/> | <mask> helperText="Sample helper text"
<mask> errorMessage="Sample error message"
<mask> placeholder="Default TextField"
<mask> InputLeftElement={
<mask> <Icon name="calendar-today" size="md" m={3} color="muted.500" />
<mask> }
<mask> InputRightElement={
<mask> <Icon name="cancel" size="md" m={3} color="muted.500" />
<mask> }
<mask> />
</s> fix: typing and example fix </s> remove <Icon name="cancel" size="md" m={3} color="muted.500" />
</s> add <Icon name="cancel" size="md" my={3} mr={3} color="muted.500" /> </s> remove _helperTextProps?: string;
_errorMessageProps?: string;
</s> add _helperTextProps?: any;
_errorMessageProps?: any; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932a5be0f46a5901157e0540d5e0c9b262c58069 | example/storybook/stories/components/composites/TextField/WithIcon.tsx |
<Icon name="cancel" size="md" my={3} mr={3} color="muted.500" /> | <mask> InputLeftElement={
<mask> <Icon name="calendar-today" size="md" m={3} color="muted.500" />
<mask> }
<mask> InputRightElement={
<mask> <Icon name="cancel" size="md" m={3} color="muted.500" />
<mask> }
<mask> />
<mask> <Button onPress={() => setIsInvalid(!isInvalid)}>
<mask> Toggle Invalid State
<mask> </Button>
</s> fix: typing and example fix </s> remove <Icon name="calendar-today" size="md" m={3} color="muted.500" />
</s> add <Icon
name="calendar-today"
size="md"
my={3}
ml={3}
color="muted.500"
/> </s> remove _helperTextProps?: string;
_errorMessageProps?: string;
</s> add _helperTextProps?: any;
_errorMessageProps?: any; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932a5be0f46a5901157e0540d5e0c9b262c58069 | example/storybook/stories/components/composites/TextField/WithIcon.tsx |
_helperTextProps?: any;
_errorMessageProps?: any; | <mask> export type ITextFieldProps = IInputProps &
<mask> IStackProps & {
<mask> helperText?: string;
<mask> errorMessage?: string;
<mask> _helperTextProps?: string;
<mask> _errorMessageProps?: string;
<mask> };
</s> fix: typing and example fix </s> remove <Icon name="cancel" size="md" m={3} color="muted.500" />
</s> add <Icon name="cancel" size="md" my={3} mr={3} color="muted.500" /> </s> remove <Icon name="calendar-today" size="md" m={3} color="muted.500" />
</s> add <Icon
name="calendar-today"
size="md"
my={3}
ml={3}
color="muted.500"
/> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932a5be0f46a5901157e0540d5e0c9b262c58069 | src/components/composites/TextField/types.tsx |
ViewPropTypes, | <mask> Modal,
<mask> Platform,
<mask> TouchableOpacity,
<mask> StyleSheet,
<mask> ViewPropTypes
<mask> } from 'react-native';
<mask> import { connectStyle } from 'native-base-shoutem-theme';
<mask>
<mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
<mask> import commonColor, { PLATFORM } from '../theme/variables/commonColor';
</s> feat: style and fontStyle added in ActionSheet </s> remove items: []
</s> add items: [], </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
items: [], | <mask> constructor(props) {
<mask> super(props);
<mask> this.state = {
<mask> modalVisible: false,
<mask> items: []
<mask> };
<mask> }
<mask>
<mask> componentDidMount() {
<mask> if (!this.props.autoHide && this.props.duration) {
</s> feat: style and fontStyle added in ActionSheet </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', </s> remove callback
</s> add callback,
style: config.style,
fontStyle: config.fontStyle, </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
const filtered = options.map((item) => { | <mask> showActionSheet(config, callback) {
<mask> if (Platform.OS === PLATFORM.IOS) {
<mask> if (typeof config.options[0] === 'object') {
<mask> const options = config.options;
<mask> const filtered = options.map(item => {
<mask> return item.text;
<mask> });
<mask>
<mask> const filteredConfig = { ...config, options: filtered };
<mask> ActionSheetIOS.showActionSheetWithOptions(filteredConfig, callback);
</s> feat: style and fontStyle added in ActionSheet </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, </s> remove items: []
</s> add items: [], </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', </s> remove { marginTop: this.state.title ? commonColor.marginTop : 0 }
</s> add { marginTop: this.state.title ? commonColor.marginTop : 0 }, </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
callback,
style: config.style,
fontStyle: config.fontStyle, | <mask> message: config.message,
<mask> destructiveButtonIndex: config.destructiveButtonIndex,
<mask> cancelButtonIndex: config.cancelButtonIndex,
<mask> modalVisible: true,
<mask> callback
<mask> });
<mask> }
<mask> }
<mask>
<mask> hideActionSheet() {
</s> feat: style and fontStyle added in ActionSheet </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> </s> remove items: []
</s> add items: [], </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
<TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> | <mask> this.setState({ modalVisible: false });
<mask> }}
<mask> style={styles.containerTouchable}
<mask> >
<mask> <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
<mask> {this.state.title ? (
<mask> <Text style={styles.touchableText}>{this.state.title}</Text>
<mask> ) : null}
<mask> <FlatList
<mask> style={[
</s> feat: style and fontStyle added in ActionSheet </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> </s> remove { marginTop: this.state.title ? commonColor.marginTop : 0 }
</s> add { marginTop: this.state.title ? commonColor.marginTop : 0 }, </s> remove color: item.iconColor ? item.iconColor : undefined
</s> add color: item.iconColor ? item.iconColor : undefined, </s> remove height: commonColor.listItemHeight
}
</s> add height: commonColor.listItemHeight,
}, </s> remove <Text>{item.text}</Text>
</s> add <Text style={this.state.fontStyle}>{item.text}</Text> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
{ marginTop: this.state.title ? commonColor.marginTop : 0 }, | <mask> ) : null}
<mask> <FlatList
<mask> style={[
<mask> styles.flatList,
<mask> { marginTop: this.state.title ? commonColor.marginTop : 0 }
<mask> ]}
<mask> data={this.state.items}
<mask> keyExtractor={(item, index) => String(index)}
<mask> renderItem={({ index, item }) => {
<mask> return typeof this.state.items[0] === 'string' ? (
</s> feat: style and fontStyle added in ActionSheet </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove color: item.iconColor ? item.iconColor : undefined
</s> add color: item.iconColor ? item.iconColor : undefined, </s> remove height: commonColor.listItemHeight
}
</s> add height: commonColor.listItemHeight,
}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
<Text style={this.state.fontStyle}>{item}</Text> | <mask> this.setState({ modalVisible: false });
<mask> }}
<mask> style={styles.listItem}
<mask> >
<mask> <Text>{item}</Text>
<mask> </ListItem>
<mask> ) : (
<mask> <ListItem
<mask> onPress={() => {
<mask> this.state.callback(parseInt(index));
</s> feat: style and fontStyle added in ActionSheet </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove { marginTop: this.state.title ? commonColor.marginTop : 0 }
</s> add { marginTop: this.state.title ? commonColor.marginTop : 0 }, </s> remove <Text>{item.text}</Text>
</s> add <Text style={this.state.fontStyle}>{item.text}</Text> </s> remove height: commonColor.listItemHeight
}
</s> add height: commonColor.listItemHeight,
}, </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
height: commonColor.listItemHeight,
}, | <mask> }}
<mask> style={[
<mask> styles.listItem,
<mask> {
<mask> height: commonColor.listItemHeight
<mask> }
<mask> ]}
<mask> icon
<mask> >
<mask> <Left>
<mask> <Icon
</s> feat: style and fontStyle added in ActionSheet </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove { marginTop: this.state.title ? commonColor.marginTop : 0 }
</s> add { marginTop: this.state.title ? commonColor.marginTop : 0 }, </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> </s> remove color: item.iconColor ? item.iconColor : undefined
</s> add color: item.iconColor ? item.iconColor : undefined, </s> remove <Text>{item.text}</Text>
</s> add <Text style={this.state.fontStyle}>{item.text}</Text> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
color: item.iconColor ? item.iconColor : undefined, | <mask> <Icon
<mask> name={item.icon}
<mask> type={item.iconType}
<mask> style={{
<mask> color: item.iconColor ? item.iconColor : undefined
<mask> }}
<mask> />
<mask> </Left>
<mask> <Body style={styles.listItemBody}>
<mask> <Text>{item.text}</Text>
</s> feat: style and fontStyle added in ActionSheet </s> remove <Text>{item.text}</Text>
</s> add <Text style={this.state.fontStyle}>{item.text}</Text> </s> remove { marginTop: this.state.title ? commonColor.marginTop : 0 }
</s> add { marginTop: this.state.title ? commonColor.marginTop : 0 }, </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove height: commonColor.listItemHeight
}
</s> add height: commonColor.listItemHeight,
}, </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
<Text style={this.state.fontStyle}>{item.text}</Text> | <mask> }}
<mask> />
<mask> </Left>
<mask> <Body style={styles.listItemBody}>
<mask> <Text>{item.text}</Text>
<mask> </Body>
<mask> <Right />
<mask> </ListItem>
<mask> );
<mask> }}
</s> feat: style and fontStyle added in ActionSheet </s> remove color: item.iconColor ? item.iconColor : undefined
</s> add color: item.iconColor ? item.iconColor : undefined, </s> remove <Text>{item}</Text>
</s> add <Text style={this.state.fontStyle}>{item}</Text> </s> remove height: commonColor.listItemHeight
}
</s> add height: commonColor.listItemHeight,
}, </s> remove <TouchableOpacity activeOpacity={1} style={styles.innerTouchable}>
</s> add <TouchableOpacity
activeOpacity={1}
style={[styles.innerTouchable, this.state.style]}
> </s> remove items: []
</s> add items: [], | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
...ViewPropTypes, | <mask> }
<mask> }
<mask>
<mask> ActionSheetContainer.propTypes = {
<mask> ...ViewPropTypes
<mask> };
<mask>
<mask> const styles = StyleSheet.create({
<mask> containerTouchable: {
<mask> backgroundColor: commonColor.containerTouchableBackgroundColor,
</s> feat: style and fontStyle added in ActionSheet </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove items: []
</s> add items: [], </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, </s> remove marginHorizontal: commonColor.marginHorizontal
</s> add marginHorizontal: commonColor.marginHorizontal, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
justifyContent: 'flex-end', | <mask> const styles = StyleSheet.create({
<mask> containerTouchable: {
<mask> backgroundColor: commonColor.containerTouchableBackgroundColor,
<mask> flex: 1,
<mask> justifyContent: 'flex-end'
<mask> },
<mask> flatList: {
<mask> marginHorizontal: commonColor.marginHorizontal
<mask> },
<mask> innerTouchable: {
</s> feat: style and fontStyle added in ActionSheet </s> remove marginHorizontal: commonColor.marginHorizontal
</s> add marginHorizontal: commonColor.marginHorizontal, </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, </s> remove items: []
</s> add items: [], | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
marginHorizontal: commonColor.marginHorizontal, | <mask> flex: 1,
<mask> justifyContent: 'flex-end'
<mask> },
<mask> flatList: {
<mask> marginHorizontal: commonColor.marginHorizontal
<mask> },
<mask> innerTouchable: {
<mask> backgroundColor: commonColor.innerTouchableBackgroundColor,
<mask> minHeight: commonColor.minHeight,
<mask> maxHeight: Dimensions.get('window').height / 2,
</s> feat: style and fontStyle added in ActionSheet </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', </s> remove elevation: commonColor.elevation
</s> add elevation: commonColor.elevation, </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, </s> remove marginLeft: commonColor.marginLeft
</s> add marginLeft: commonColor.marginLeft, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
elevation: commonColor.elevation, | <mask> backgroundColor: commonColor.innerTouchableBackgroundColor,
<mask> minHeight: commonColor.minHeight,
<mask> maxHeight: Dimensions.get('window').height / 2,
<mask> padding: commonColor.padding,
<mask> elevation: commonColor.elevation
<mask> },
<mask> listItem: {
<mask> borderColor: commonColor.listItemBorderColor,
<mask> marginLeft: commonColor.marginLeft
<mask> },
</s> feat: style and fontStyle added in ActionSheet </s> remove marginLeft: commonColor.marginLeft
</s> add marginLeft: commonColor.marginLeft, </s> remove marginHorizontal: commonColor.marginHorizontal
</s> add marginHorizontal: commonColor.marginHorizontal, </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
marginLeft: commonColor.marginLeft, | <mask> elevation: commonColor.elevation
<mask> },
<mask> listItem: {
<mask> borderColor: commonColor.listItemBorderColor,
<mask> marginLeft: commonColor.marginLeft
<mask> },
<mask> listItemBody: {
<mask> borderColor: commonColor.listItemBorderColor,
<mask> paddingLeft: commonColor.marginLeft / 2
<mask> },
</s> feat: style and fontStyle added in ActionSheet </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove elevation: commonColor.elevation
</s> add elevation: commonColor.elevation, </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, </s> remove marginHorizontal: commonColor.marginHorizontal
</s> add marginHorizontal: commonColor.marginHorizontal, </s> remove justifyContent: 'flex-end'
</s> add justifyContent: 'flex-end', | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
paddingLeft: commonColor.marginLeft / 2, | <mask> marginLeft: commonColor.marginLeft
<mask> },
<mask> listItemBody: {
<mask> borderColor: commonColor.listItemBorderColor,
<mask> paddingLeft: commonColor.marginLeft / 2
<mask> },
<mask> touchableText: {
<mask> color: commonColor.touchableTextColor
<mask> }
<mask> });
</s> feat: style and fontStyle added in ActionSheet </s> remove marginLeft: commonColor.marginLeft
</s> add marginLeft: commonColor.marginLeft, </s> remove color: commonColor.touchableTextColor
}
</s> add color: commonColor.touchableTextColor,
}, </s> remove elevation: commonColor.elevation
</s> add elevation: commonColor.elevation, </s> remove marginHorizontal: commonColor.marginHorizontal
</s> add marginHorizontal: commonColor.marginHorizontal, </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
color: commonColor.touchableTextColor,
}, | <mask> borderColor: commonColor.listItemBorderColor,
<mask> paddingLeft: commonColor.marginLeft / 2
<mask> },
<mask> touchableText: {
<mask> color: commonColor.touchableTextColor
<mask> }
<mask> });
<mask>
<mask> const StyledActionSheetContainer = connectStyle(
<mask> 'NativeBase.ActionSheetContainer',
<mask> {},
</s> feat: style and fontStyle added in ActionSheet </s> remove paddingLeft: commonColor.marginLeft / 2
</s> add paddingLeft: commonColor.marginLeft / 2, </s> remove marginLeft: commonColor.marginLeft
</s> add marginLeft: commonColor.marginLeft, </s> remove elevation: commonColor.elevation
</s> add elevation: commonColor.elevation, </s> remove const filtered = options.map(item => {
</s> add const filtered = options.map((item) => { </s> remove ...ViewPropTypes
</s> add ...ViewPropTypes, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/932d4d6e8522e3ae5db83c1dbfffb02b74353454 | src/basic/Actionsheet.js |
"@react-native-aria/focus": "^0.2.2", | <mask> "dependencies": {
<mask> "@react-aria/visually-hidden": "^3.2.1",
<mask> "@react-native-aria/button": "^0.2.1",
<mask> "@react-native-aria/interactions": "^0.2.1",
<mask> "@react-native-aria/radio": "^0.2.1",
<mask> "@react-native-aria/switch": "^0.2.1",
<mask> "@react-stately/radio": "^3.2.1",
</s> fix: menu focus trap fix - v3 </s> remove import { FocusScope } from '@react-aria/focus';
</s> add //@ts-ignore - Todo - fix types to typings in rn-aria in next version
import { FocusScope } from '@react-native-aria/focus'; </s> remove setPopover(<View {...newProps}>{children}</View>, {
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
});
</s> add setPopover(
<View {...newProps}>
<FocusScope restoreFocus autoFocus>
{children}
</FocusScope>
</View>,
{
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
}
); | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9351220d0eb153a2ab5bcece6a13020057f4f8e6 | package.json |
//@ts-ignore - Todo - fix types to typings in rn-aria in next version
import { FocusScope } from '@react-native-aria/focus'; | <mask> import { useThemeProps } from '../../../hooks';
<mask> import { usePopover } from '../../../core';
<mask>
<mask> export const Menu = React.memo(
<mask> ({
<mask> trigger,
<mask> closeOnSelect = true,
</s> fix: menu focus trap fix - v3 </s> remove import { FocusScope } from '@react-aria/focus';
</s> add //@ts-ignore - Todo - fix types to typings in rn-aria in next version
import { FocusScope } from '@react-native-aria/focus'; </s> remove setPopover(<View {...newProps}>{children}</View>, {
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
});
</s> add setPopover(
<View {...newProps}>
<FocusScope restoreFocus autoFocus>
{children}
</FocusScope>
</View>,
{
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
}
); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9351220d0eb153a2ab5bcece6a13020057f4f8e6 | src/components/composites/Menu/Menu.tsx |
setPopover(
<View {...newProps}>
<FocusScope restoreFocus autoFocus>
{children}
</FocusScope>
</View>,
{
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
}
); | <mask> toggle(false);
<mask> onClose && onClose();
<mask> };
<mask> const openMenu = () => {
<mask> setPopover(<View {...newProps}>{children}</View>, {
<mask> triggerRef,
<mask> animationDuration: 200,
<mask> onClose: closeMenu,
<mask> parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
<mask> });
<mask> toggle(true);
<mask> onOpen && onOpen();
<mask> };
<mask>
<mask> return trigger(
</s> fix: menu focus trap fix - v3 </s> remove import { FocusScope } from '@react-aria/focus';
</s> add //@ts-ignore - Todo - fix types to typings in rn-aria in next version
import { FocusScope } from '@react-native-aria/focus'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9351220d0eb153a2ab5bcece6a13020057f4f8e6 | src/components/composites/Menu/Menu.tsx |
//@ts-ignore - Todo - fix types to typings in rn-aria in next version
import { FocusScope } from '@react-native-aria/focus'; | <mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, position, space } from 'styled-system';
<mask> import { useOverlay } from '../../../core/Overlay';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import { FocusScope } from '@react-aria/focus';
<mask> import {
<mask> customBackground,
<mask> customBorder,
<mask> customExtra,
<mask> customLayout,
</s> fix: menu focus trap fix - v3 </s> remove setPopover(<View {...newProps}>{children}</View>, {
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
});
</s> add setPopover(
<View {...newProps}>
<FocusScope restoreFocus autoFocus>
{children}
</FocusScope>
</View>,
{
triggerRef,
animationDuration: 200,
onClose: closeMenu,
parentComponentConfig: { open: isOpen, closeMenu, closeOnSelect },
}
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9351220d0eb153a2ab5bcece6a13020057f4f8e6 | src/components/composites/Modal/index.tsx |
import { Container } from 'native-base'; | <mask> import { Drawer } from 'native-base';
<mask> import { Header } from './Widgets/Header';
<mask> import { Footer } from 'native-base';
<mask> import { Title } from './Widgets/Title';
<mask> import { Container } from './Widgets/Container';
<mask> import { Content } from './Widgets/Content';
<mask> import { Button } from './Widgets/Button';
<mask> import { Text } from './Widgets/Text';
<mask> import { Switch } from 'native-base';
<mask> import { Picker } from 'native-base';
</s> individual theme files for components </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | backward/index.js |
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, | <mask> import variable from './variables';
<mask>
<mask> export default (variables = variable) => {
<mask> const cardItemTheme = {
<mask>
<mask> };
<mask>
<mask> return cardItemTheme;
<mask> };
</s> individual theme files for components </s> remove flex: 1,
'.padder': {
padding: variables.contentPadding,
},
</s> add ...viewTheme(variables), </s> remove import { Container } from './Widgets/Container';
</s> add import { Container } from 'native-base'; </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/CardItem.js |
import h2Theme from './H2';
import h1Theme from './H1';
import footerTheme from './Footer';
import footerTabTheme from './FooterTab';
import fabTheme from './Fab';
import itemTheme from './Item';
import labelTheme from './Label';
import textAreaTheme from './Textarea';
import tabTheme from './Tab';
import tabBarTheme from './TabBar';
import viewTheme from './View';
import iconTheme from './Icon';
import spinnerTheme from './Spinner';
import cardItemTheme from './CardItem';
import listItemTheme from './ListItem'; | <mask> import radioTheme from './Radio';
<mask> import h3Theme from './H3';
<mask> import variable from './variables';
<mask>
<mask> export default (variables = variable) => {
<mask> const theme = {
</s> individual theme files for components </s> remove import { Container } from './Widgets/Container';
</s> add import { Container } from 'native-base'; </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove flex: 1,
'.padder': {
padding: variables.contentPadding,
},
</s> add ...viewTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...cardItemTheme(variables), | <mask> ...cardTheme(),
<mask> },
<mask>
<mask> 'NativeBase.CardItem': {
<mask> 'NativeBase.Left': {
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> marginRight: 20,
<mask> },
<mask> fontWeight: '600',
<mask> },
<mask> flex: 1,
<mask> marginLeft: 10,
<mask> alignItems: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.Text': {
<mask> marginLeft: 10,
<mask> alignSelf: 'center',
<mask> },
<mask> flex: 1,
<mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> },
<mask> '.cardBody': {
<mask> flexDirection: 'column',
<mask> },
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> marginRight: 20,
<mask> },
<mask> lineHeight: 20,
<mask> },
<mask> flex: 1,
<mask> alignItems: 'flex-start',
<mask> },
<mask> 'NativeBase.Right': {
<mask> 'NativeBase.Badge': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Button': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Text': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Thumbnail': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Image': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Radio': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Checkbox': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Switch': {
<mask> alignSelf: null,
<mask> },
<mask> },
<mask> '.header': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 17,
<mask> fontWeight: '600',
<mask> },
<mask> borderBottomWidth: null,
<mask> },
<mask> '.footer': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 17,
<mask> fontWeight: '600',
<mask> },
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> fontWeight: '500',
<mask> },
<mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> padding: variables.listItemPadding,
<mask> borderBottomWidth: variables.borderWidth,
<mask> backgroundColor: variables.listBg,
</s> individual theme files for components </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
<mask> fontWeight: '500',
<mask> },
<mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> padding: variables.listItemPadding,
<mask> borderBottomWidth: variables.borderWidth,
<mask> backgroundColor: variables.listBg,
<mask> borderColor: variables.listBorderColor,
<mask> },
<mask> 'NativeBase.CardItem1': {
<mask> '.cardBody': {
<mask> flexDirection: 'column',
<mask> 'NativeBase.Text': {
</s> individual theme files for components </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
|
...cardItemTheme(variables), | <mask> backgroundColor: variables.listBg,
<mask> borderColor: variables.listBorderColor,
<mask> },
<mask> 'NativeBase.CardItem1': {
<mask> '.cardBody': {
<mask> flexDirection: 'column',
<mask> 'NativeBase.Text': {
<mask> marginTop: 5,
<mask> },
<mask> },
<mask> '.header': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 17,
<mask> fontWeight: '600',
<mask> },
<mask> borderBottomWidth: null,
<mask> },
<mask> '.footer': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 17,
<mask> fontWeight: '600',
<mask> },
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> fontWeight: '500',
<mask> },
<mask> padding: variables.listItemPadding,
<mask> borderBottomWidth: variables.borderWidth,
<mask> backgroundColor: variables.listBg,
<mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.H1': {
<mask> color: variables.textColor,
<mask> fontSize: variables.fontSizeH1,
</s> individual theme files for components </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...h1Theme(variables), | <mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.H1': {
<mask> color: variables.textColor,
<mask> fontSize: variables.fontSizeH1,
<mask> lineHeight: variables.lineHeightH1,
<mask> },
<mask> 'NativeBase.H2': {
<mask> color: variables.textColor,
<mask> fontSize: variables.fontSizeH2,
<mask> lineHeight: variables.lineHeightH2,
</s> individual theme files for components </s> remove color: variables.textColor,
fontSize: variables.fontSizeH2,
lineHeight: variables.lineHeightH2,
</s> add ...h2Theme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove '.underline': {
borderBottomWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
'.bordered': {
borderWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
color: variables.textColor,
paddingLeft: 10,
paddingRight: 5,
fontSize: 15,
textAlignVertical: 'top',
</s> add ...textAreaTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...h2Theme(variables), | <mask> fontSize: variables.fontSizeH1,
<mask> lineHeight: variables.lineHeightH1,
<mask> },
<mask> 'NativeBase.H2': {
<mask> color: variables.textColor,
<mask> fontSize: variables.fontSizeH2,
<mask> lineHeight: variables.lineHeightH2,
<mask> },
<mask> 'NativeBase.H3': {
<mask> ...h3Theme(variables),
<mask> },
<mask>
</s> individual theme files for components </s> remove color: variables.textColor,
fontSize: variables.fontSizeH1,
lineHeight: variables.lineHeightH1,
</s> add ...h1Theme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove '.underline': {
borderBottomWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
'.bordered': {
borderWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
color: variables.textColor,
paddingLeft: 10,
paddingRight: 5,
fontSize: 15,
textAlignVertical: 'top',
</s> add ...textAreaTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...footerTheme(variables), | <mask> },
<mask>
<mask>
<mask> 'NativeBase.Footer': {
<mask> 'NativeBase.Left': {
<mask> 'NativeBase.Button': {
<mask> '.transparent': {
<mask> backgroundColor: 'transparent',
<mask> borderColor: null,
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> alignSelf: null,
<mask> },
<mask> flex: 1,
<mask> alignSelf: 'center',
<mask> alignItems: 'flex-start',
<mask> },
<mask> 'NativeBase.Body': {
<mask> flex: 1,
<mask> alignItems: 'center',
<mask> alignSelf: 'center',
<mask> 'NativeBase.Button': {
<mask> alignSelf: 'center',
<mask> '.transparent': {
<mask> backgroundColor: 'transparent',
<mask> borderColor: null,
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.Text': {
<mask> color: variables.titleFontColor,
<mask> },
<mask> },
<mask> },
<mask> 'NativeBase.Right': {
<mask> 'NativeBase.Button': {
<mask> '.transparent': {
<mask> backgroundColor: 'transparent',
<mask> borderColor: null,
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.topTabBarActiveTextColor,
<mask> },
<mask> alignSelf: null,
<mask> },
<mask> flex: 1,
<mask> alignSelf: 'center',
<mask> alignItems: 'flex-end',
<mask> },
<mask> backgroundColor: variables.footerDefaultBg,
<mask> flexDirection: 'row',
<mask> justifyContent: 'center',
<mask> borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
<mask> borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
<mask> height: variables.footerHeight,
<mask> elevation: 3,
<mask> position: 'absolute',
<mask> bottom: (Platform.OS === 'ios') ? 0 : 23,
<mask> left: 0,
<mask> right: 0,
<mask> },
<mask>
<mask> 'NativeBase.Tabs': {
<mask> flex: 1,
<mask> },
</s> individual theme files for components </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...footerTabTheme(variables), | <mask> flex: 1,
<mask> },
<mask>
<mask> 'NativeBase.FooterTab': {
<mask> 'NativeBase.Button': {
<mask> '.active': {
<mask> 'NativeBase.Text': {
<mask> color: variables.tabBarActiveTextColor,
<mask> fontSize: (Platform.OS === 'ios') ? 14 : 12,
<mask> lineHeight: 16,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> color: variables.tabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.tabBarActiveTextColor,
<mask> },
<mask> backgroundColor: variables.tabActiveBgColor,
<mask> },
<mask> flexDirection: null,
<mask> backgroundColor: 'transparent',
<mask> borderColor: null,
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> alignSelf: 'center',
<mask> flex: 1,
<mask> height: variables.footerHeight,
<mask> justifyContent: 'center',
<mask> 'NativeBase.Badge': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 11,
<mask> lineHeight: 14,
<mask> },
<mask> position: 'absolute',
<mask> zIndex: 99,
<mask> top: -4,
<mask> height: 18,
<mask> padding: 1.7,
<mask> paddingHorizontal: 3,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> color: variables.tabBarTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.tabBarTextColor,
<mask> },
<mask> 'NativeBase.Text': {
<mask> color: variables.tabBarTextColor,
<mask> fontSize: variables.tabBarTextSize,
<mask> lineHeight: 16,
<mask> },
<mask> },
<mask> flexDirection: 'row',
<mask> justifyContent: 'space-between',
<mask> flex: 1,
<mask> alignSelf: 'stretch',
<mask> },
<mask>
<mask> 'NativeBase.ListItem': {
<mask> 'NativeBase.InputGroup': {
<mask> flex: 1,
</s> individual theme files for components </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...listItemTheme(variables), | <mask> alignSelf: 'stretch',
<mask> },
<mask>
<mask> 'NativeBase.ListItem': {
<mask> 'NativeBase.InputGroup': {
<mask> flex: 1,
<mask> borderWidth: null,
<mask> 'NativeBase.Icon': {
<mask> paddingRight: 5,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> paddingRight: 5,
<mask> },
<mask> 'NativeBase.Input': {
<mask> paddingHorizontal: 5,
<mask> },
<mask> },
<mask> 'NativeBase.CheckBox': {
<mask> marginLeft: -10,
<mask> marginRight: 10,
<mask> },
<mask> '.itemDivider': {
</s> individual theme files for components </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove '.underline': {
borderBottomWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
'.bordered': {
borderWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
color: variables.textColor,
paddingLeft: 10,
paddingRight: 5,
fontSize: 15,
textAlignVertical: 'top',
</s> add ...textAreaTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
<mask> 'NativeBase.CheckBox': {
<mask> marginLeft: -10,
<mask> marginRight: 10,
<mask> },
<mask> '.itemDivider': {
<mask> borderBottomWidth: variables.borderWidth,
<mask> height: variables.listItemHeight,
<mask> marginLeft: null,
<mask> padding: variables.listItemPadding,
<mask> backgroundColor: variables.listDividerBg,
<mask> flexDirection: 'row',
<mask> borderColor: variables.listBorderColor,
<mask> 'NativeBase.Text': {
<mask> fontSize: 16,
<mask> fontWeight: '600',
<mask> },
<mask> },
<mask> 'NativeBase.Left': {
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> fontWeight: '600',
<mask> },
<mask> marginLeft: 10,
<mask> alignItems: null,
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> width: variables.iconFontSize,
<mask> fontSize: variables.iconFontSize,
<mask> lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> width: variables.iconFontSize,
<mask> fontSize: variables.iconFontSize,
<mask> lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
<mask> },
<mask> 'NativeBase.Text': {
<mask> marginLeft: 10,
<mask> alignSelf: 'center',
<mask> },
<mask> flexDirection: 'row',
<mask> marginLeft: -variables.listItemPadding,
<mask> },
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> marginHorizontal: variables.listItemPadding,
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> },
<mask> alignSelf: null,
<mask> alignItems: null,
<mask> },
<mask> 'NativeBase.Right': {
<mask> 'NativeBase.Badge': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Button': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Thumbnail': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Image': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Radio': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Checkbox': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Switch': {
<mask> alignSelf: null,
<mask> },
<mask> padding: null,
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> marginRight: 20,
<mask> },
<mask> alignSelf: 'center',
<mask> },
<mask> flexDirection: 'row',
<mask> padding: variables.listItemPadding,
<mask> marginLeft: variables.listItemPadding,
<mask> borderBottomWidth: variables.borderWidth,
<mask> backgroundColor: variables.listBg,
<mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.ListItem1': {
<mask> 'NativeBase.InputGroup': {
<mask> 'NativeBase.Icon': {
</s> individual theme files for components </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
|
...listItemTheme(variables), | <mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.ListItem1': {
<mask> 'NativeBase.InputGroup': {
<mask> 'NativeBase.Icon': {
<mask> paddingRight: 5,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> paddingRight: 5,
<mask> },
<mask> 'NativeBase.Input': {
<mask> '.inlineLabel': {
<mask>
<mask> },
<mask> paddingHorizontal: 5,
<mask> },
<mask> flex: 1,
<mask> borderWidth: null,
<mask> margin: -10,
<mask> borderBottomColor: 'transparent',
<mask> },
<mask> 'NativeBase.CheckBox': {
<mask> marginLeft: -10,
<mask> },
<mask> '.itemDivider': {
<mask> borderBottomWidth: variables.borderWidth,
<mask> height: variables.listItemHeight,
<mask> marginLeft: null,
<mask> padding: variables.listItemPadding,
<mask> backgroundColor: variables.listDividerBg,
<mask> flexDirection: 'row',
<mask> borderColor: variables.listBorderColor,
<mask> 'NativeBase.Text': {
<mask> fontSize: 16,
<mask> fontWeight: '600',
<mask> },
<mask> },
<mask> 'NativeBase.Left': {
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> fontWeight: '600',
<mask> },
<mask> marginLeft: 10,
<mask> alignItems: null,
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> width: variables.iconFontSize,
<mask> fontSize: variables.iconFontSize,
<mask> lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> width: variables.iconFontSize,
<mask> fontSize: variables.iconFontSize,
<mask> lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
<mask> },
<mask> 'NativeBase.Text': {
<mask> marginLeft: 10,
<mask> alignSelf: 'center',
<mask> },
<mask> flexDirection: 'row',
<mask> marginLeft: -variables.listItemPadding,
<mask> },
<mask> 'NativeBase.Body': {
<mask> 'NativeBase.Text': {
<mask> marginHorizontal: variables.listItemPadding,
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> },
<mask> alignSelf: null,
<mask> alignItems: null,
<mask> },
<mask> 'NativeBase.Right': {
<mask> 'NativeBase.Badge': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Button': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Thumbnail': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Image': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Radio': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Checkbox': {
<mask> alignSelf: null,
<mask> },
<mask> 'NativeBase.Switch': {
<mask> alignSelf: null,
<mask> },
<mask> padding: null,
<mask> },
<mask> 'NativeBase.Text': {
<mask> '.note': {
<mask> color: variables.listNoteColor,
<mask> fontWeight: '200',
<mask> },
<mask> alignSelf: null,
<mask> },
<mask> flexDirection: 'row',
<mask> padding: variables.listItemPadding,
<mask> marginLeft: variables.listItemPadding,
<mask> borderBottomWidth: variables.borderWidth,
<mask> backgroundColor: variables.listBg,
<mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.Icon': {
<mask> fontSize: variables.iconFontSize,
<mask> },
</s> individual theme files for components </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...iconTheme(variables), | <mask> borderColor: variables.listBorderColor,
<mask> },
<mask>
<mask> 'NativeBase.Icon': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.Text': {
</s> individual theme files for components </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove fontSize: variables.iconFontSize,
</s> add ...iconTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
</s> add ...cardItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...iconTheme(variables), | <mask> 'NativeBase.Icon': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> fontSize: variables.iconFontSize,
<mask> },
<mask> 'NativeBase.Text': {
<mask> paddingHorizontal: 3,
<mask> },
<mask> 'NativeBase.Spinner': {
</s> individual theme files for components </s> remove fontSize: variables.iconFontSize,
</s> add ...iconTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove height: 80,
</s> add ...spinnerTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...spinnerTheme(variables), | <mask> 'NativeBase.Text': {
<mask> paddingHorizontal: 3,
<mask> },
<mask> 'NativeBase.Spinner': {
<mask> height: 80,
<mask> },
<mask>
<mask> 'NativeBase.Fab': {
<mask> 'NativeBase.Button': {
<mask> alignItems: 'center',
</s> individual theme files for components </s> remove 'NativeBase.Button': {
alignItems: 'center',
justifyContent: 'center',
'NativeBase.Icon': {
alignSelf: 'center',
},
'NativeBase.IconNB': {
alignSelf: 'center',
},
},
</s> add ...fabTheme(variables), </s> remove fontSize: variables.iconFontSize,
</s> add ...iconTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...fabTheme(variables), | <mask> height: 80,
<mask> },
<mask>
<mask> 'NativeBase.Fab': {
<mask> 'NativeBase.Button': {
<mask> alignItems: 'center',
<mask> justifyContent: 'center',
<mask> 'NativeBase.Icon': {
<mask> alignSelf: 'center',
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> alignSelf: 'center',
<mask> },
<mask> },
<mask> },
<mask>
<mask>
<mask> 'NativeBase.Item': {
<mask> '.floatingLabel': {
</s> individual theme files for components </s> remove height: 80,
</s> add ...spinnerTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...itemTheme(variables), | <mask> },
<mask>
<mask>
<mask> 'NativeBase.Item': {
<mask> '.floatingLabel': {
<mask> 'NativeBase.Input': {
<mask> height: 55,
<mask> top: 10,
<mask> },
<mask> },
<mask> '.fixedLabel': {
<mask> 'NativeBase.Label': {
<mask> position: null,
<mask> top: null,
<mask> left: null,
<mask> right: null,
<mask> paddingLeft: 10,
<mask> flex: 1,
<mask> height: null,
<mask> width: null,
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> 'NativeBase.Input': {
<mask> flex: 2,
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> },
<mask> '.stackedLabel': {
<mask> 'NativeBase.Label': {
<mask> position: null,
<mask> top: null,
<mask> left: null,
<mask> right: null,
<mask> paddingTop: 5,
<mask> paddingLeft: 10,
<mask> alignSelf: 'flex-start',
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> 'NativeBase.Input': {
<mask> alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
<mask> flex: 1,
<mask> width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
<mask> paddingTop: 10,
<mask> paddingLeft: 10,
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> flexDirection: null,
<mask> },
<mask> '.inlineLabel': {
<mask> 'NativeBase.Label': {
<mask> position: null,
<mask> top: null,
<mask> left: null,
<mask> right: null,
<mask> paddingLeft: 10,
<mask> paddingRight: 20,
<mask> height: null,
<mask> width: null,
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> 'NativeBase.Input': {
<mask> paddingLeft: 5,
<mask> fontSize: variables.inputFontSize,
<mask> },
<mask> flexDirection: 'row',
<mask> },
<mask> 'NativeBase.Label': {
<mask> position: 'absolute',
<mask> top: 10,
<mask> left: 15,
<mask> right: 0,
<mask> fontSize: variables.inputFontSize,
<mask> color: variables.inputColorPlaceholder,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> fontSize: 24,
<mask> color: variables.topTabBarActiveTextColor,
<mask> paddingHorizontal: 5,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> fontSize: 24,
<mask> color: variables.topTabBarActiveTextColor,
<mask> paddingHorizontal: 5,
<mask> },
<mask> 'NativeBase.Input': {
<mask> height: variables.inputHeightBase,
<mask> color: variables.inputColor,
<mask> paddingRight: 5,
<mask> paddingLeft: 10,
<mask> flex: 1,
<mask> fontSize: variables.inputFontSize,
<mask> lineHeight: variables.inputLineHeight,
<mask> },
<mask> '.underline': {
<mask> '.success': {
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> '.error': {
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> paddingLeft: 5,
<mask> borderWidth: variables.borderWidth,
<mask> borderTopWidth: 0,
<mask> borderRightWidth: 0,
<mask> borderLeftWidth: 0,
<mask> borderColor: variables.inputBorderColor,
<mask> },
<mask> '.regular': {
<mask> '.success': {
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> '.error': {
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> paddingLeft: 5,
<mask> borderWidth: variables.borderWidth,
<mask> borderColor: variables.inputBorderColor,
<mask> },
<mask> '.rounded': {
<mask> '.success': {
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> '.error': {
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> paddingLeft: 5,
<mask> borderWidth: variables.borderWidth,
<mask> borderRadius: 30,
<mask> borderColor: variables.inputBorderColor,
<mask> },
<mask>
<mask> '.success': {
<mask> '.rounded': {
<mask> borderRadius: 30,
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> '.regular': {
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> '.underline': {
<mask> borderWidth: variables.borderWidth,
<mask> borderTopWidth: 0,
<mask> borderRightWidth: 0,
<mask> borderLeftWidth: 0,
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask> borderColor: variables.inputSuccessBorderColor,
<mask> },
<mask>
<mask> '.error': {
<mask> '.rounded': {
<mask> borderRadius: 30,
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> '.regular': {
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> '.underline': {
<mask> borderWidth: variables.borderWidth,
<mask> borderTopWidth: 0,
<mask> borderRightWidth: 0,
<mask> borderLeftWidth: 0,
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask> borderColor: variables.inputErrorBorderColor,
<mask> },
<mask>
<mask> paddingLeft: 5,
<mask> borderWidth: variables.borderWidth,
<mask> borderTopWidth: 0,
<mask> borderRightWidth: 0,
<mask> borderLeftWidth: 0,
<mask> borderColor: variables.inputBorderColor,
<mask> backgroundColor: 'transparent',
<mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> },
<mask> 'NativeBase.Label': {
<mask> '.focused': {
<mask> width: 0,
<mask> },
</s> individual theme files for components </s> remove '.underline': {
borderBottomWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
'.bordered': {
borderWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
color: variables.textColor,
paddingLeft: 10,
paddingRight: 5,
fontSize: 15,
textAlignVertical: 'top',
</s> add ...textAreaTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...labelTheme(variables), | <mask> flexDirection: 'row',
<mask> alignItems: 'center',
<mask> },
<mask> 'NativeBase.Label': {
<mask> '.focused': {
<mask> width: 0,
<mask> },
<mask> },
<mask> 'NativeBase.Textarea': {
<mask> '.underline': {
<mask> borderBottomWidth: 1,
<mask> marginTop: 5,
</s> individual theme files for components </s> remove '.underline': {
borderBottomWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
'.bordered': {
borderWidth: 1,
marginTop: 5,
borderColor: variables.inputBorderColor,
},
color: variables.textColor,
paddingLeft: 10,
paddingRight: 5,
fontSize: 15,
textAlignVertical: 'top',
</s> add ...textAreaTheme(variables), </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...textAreaTheme(variables), | <mask> width: 0,
<mask> },
<mask> },
<mask> 'NativeBase.Textarea': {
<mask> '.underline': {
<mask> borderBottomWidth: 1,
<mask> marginTop: 5,
<mask> borderColor: variables.inputBorderColor,
<mask> },
<mask> '.bordered': {
<mask> borderWidth: 1,
<mask> marginTop: 5,
<mask> borderColor: variables.inputBorderColor,
<mask> },
<mask> color: variables.textColor,
<mask> paddingLeft: 10,
<mask> paddingRight: 5,
<mask> fontSize: 15,
<mask> textAlignVertical: 'top',
<mask> },
<mask>
<mask> 'NativeBase.Tab': {
<mask> 'NativeBase.Button': {
<mask> '.active': {
</s> individual theme files for components </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove '.focused': {
width: 0,
},
</s> add ...labelTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove '.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...cardItemTheme(variables), </s> remove 'NativeBase.InputGroup': {
flex: 1,
borderWidth: null,
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
paddingHorizontal: 5,
},
},
</s> add ...listItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...tabTheme(variables), | <mask> textAlignVertical: 'top',
<mask> },
<mask>
<mask> 'NativeBase.Tab': {
<mask> 'NativeBase.Button': {
<mask> '.active': {
<mask> 'NativeBase.Text': {
<mask> color: variables.activeTab,
<mask> fontSize: (Platform.OS === 'ios') ? 14 : 12,
<mask> lineHeight: 16,
<mask> fontWeight: '700',
<mask> paddingVertical: 3,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> top: 3,
<mask> color: variables.tabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> top: 3,
<mask> color: variables.tabBarActiveTextColor,
<mask> },
<mask> borderBottomWidth: 3,
<mask> borderRadius: null,
<mask> borderColor: variables.activeTab,
<mask> },
<mask> 'NativeBase.Badge': {
<mask> 'NativeBase.Text': {
<mask> fontSize: 11,
<mask> lineHeight: 14,
<mask> },
<mask> position: 'absolute',
<mask> zIndex: 99,
<mask> top: -4,
<mask> marginLeft: 12,
<mask> height: 18,
<mask> padding: 1.7,
<mask> paddingHorizontal: 3,
<mask> },
<mask> 'NativeBase.Icon': {
<mask> top: 3,
<mask> color: variables.tabBarTextColor,
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> top: 3,
<mask> color: variables.tabBarTextColor,
<mask> },
<mask> 'NativeBase.Text': {
<mask> color: variables.activeTab,
<mask> fontSize: variables.tabBarTextSize,
<mask> lineHeight: 16,
<mask> paddingVertical: 3,
<mask> },
<mask> flexDirection: null,
<mask> backgroundColor: 'transparent',
<mask> borderColor: null,
<mask> elevation: 0,
<mask> shadowColor: null,
<mask> shadowOffset: null,
<mask> shadowRadius: null,
<mask> shadowOpacity: null,
<mask> alignSelf: 'center',
<mask> flex: 1,
<mask> height: null,
<mask> justifyContent: 'center',
<mask> borderBottomWidth: 3,
<mask> borderRadius: null,
<mask> borderColor: 'transparent',
<mask> },
<mask> flexDirection: 'row',
<mask> justifyContent: 'space-between',
<mask> alignSelf: 'stretch',
<mask> borderBottomWidth: 0.5,
<mask> borderColor: variables.btnDisabledBg,
<mask> },
<mask> 'NativeBase.STabs': {
<mask> flex: 1,
<mask> },
<mask>
</s> individual theme files for components </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), </s> remove '.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
alignSelf: 'center',
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...tabBarTheme(variables), | <mask> flex: 1,
<mask> },
<mask>
<mask> 'NativeBase.TabBar': {
<mask> '.tabIcon': {
<mask> height: undefined,
<mask> },
<mask> '.vertical': {
<mask> height: 60,
<mask> },
<mask> 'NativeBase.Button': {
<mask> '.transparent': {
<mask> 'NativeBase.Text': {
<mask> fontSize: variables.tabFontSize,
<mask> color: variables.sTabBarActiveTextColor,
<mask> fontWeight: '400',
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.sTabBarActiveTextColor,
<mask> },
<mask> },
<mask> 'NativeBase.IconNB': {
<mask> color: variables.sTabBarActiveTextColor,
<mask> },
<mask> 'NativeBase.Text': {
<mask> fontSize: variables.tabFontSize,
<mask> color: variables.sTabBarActiveTextColor,
<mask> fontWeight: '400',
<mask> },
<mask> '.isTabActive': {
<mask> 'NativeBase.Text': {
<mask> fontWeight: '900',
<mask> },
<mask> },
<mask> flex: 1,
<mask> alignSelf: 'stretch',
<mask> alignItems: 'center',
<mask> justifyContent: 'center',
<mask> borderRadius: null,
<mask> borderBottomColor: 'transparent',
<mask> backgroundColor: variables.tabBgColor,
<mask> },
<mask> height: 45,
<mask> flexDirection: 'row',
<mask> justifyContent: 'space-around',
<mask> borderWidth: 1,
<mask> borderTopWidth: 0,
<mask> borderLeftWidth: 0,
<mask> borderRightWidth: 0,
<mask> borderBottomColor: '#ccc',
<mask> },
<mask> 'NativeBase.ViewNB': {
<mask> flex: 1,
<mask> '.padder': {
<mask> padding: variables.contentPadding,
</s> individual theme files for components </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove flex: 1,
'.padder': {
padding: variables.contentPadding,
},
</s> add ...viewTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.activeTab,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
fontWeight: '700',
paddingVertical: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarActiveTextColor,
},
borderBottomWidth: 3,
borderRadius: null,
borderColor: variables.activeTab,
},
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
marginLeft: 12,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
top: 3,
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.activeTab,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
paddingVertical: 3,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: null,
justifyContent: 'center',
borderBottomWidth: 3,
borderRadius: null,
borderColor: 'transparent',
},
flexDirection: 'row',
justifyContent: 'space-between',
alignSelf: 'stretch',
borderBottomWidth: 0.5,
borderColor: variables.btnDisabledBg,
</s> add ...tabTheme(variables), </s> remove 'NativeBase.Button': {
'.active': {
'NativeBase.Text': {
color: variables.tabBarActiveTextColor,
fontSize: (Platform.OS === 'ios') ? 14 : 12,
lineHeight: 16,
},
'NativeBase.Icon': {
color: variables.tabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarActiveTextColor,
},
backgroundColor: variables.tabActiveBgColor,
},
flexDirection: null,
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
alignSelf: 'center',
flex: 1,
height: variables.footerHeight,
justifyContent: 'center',
'NativeBase.Badge': {
'NativeBase.Text': {
fontSize: 11,
lineHeight: 14,
},
position: 'absolute',
zIndex: 99,
top: -4,
height: 18,
padding: 1.7,
paddingHorizontal: 3,
},
'NativeBase.Icon': {
color: variables.tabBarTextColor,
},
'NativeBase.IconNB': {
color: variables.tabBarTextColor,
},
'NativeBase.Text': {
color: variables.tabBarTextColor,
fontSize: variables.tabBarTextSize,
lineHeight: 16,
},
},
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
alignSelf: 'stretch',
</s> add ...footerTabTheme(variables), </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
...viewTheme(variables), | <mask> borderRightWidth: 0,
<mask> borderBottomColor: '#ccc',
<mask> },
<mask> 'NativeBase.ViewNB': {
<mask> flex: 1,
<mask> '.padder': {
<mask> padding: variables.contentPadding,
<mask> },
<mask> },
<mask>
<mask> };
<mask>
<mask> const cssifyTheme = (grandparent, parent, parentKey) => {
</s> individual theme files for components </s> remove '.tabIcon': {
height: undefined,
},
'.vertical': {
height: 60,
},
'NativeBase.Button': {
'.transparent': {
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
},
'NativeBase.IconNB': {
color: variables.sTabBarActiveTextColor,
},
'NativeBase.Text': {
fontSize: variables.tabFontSize,
color: variables.sTabBarActiveTextColor,
fontWeight: '400',
},
'.isTabActive': {
'NativeBase.Text': {
fontWeight: '900',
},
},
flex: 1,
alignSelf: 'stretch',
alignItems: 'center',
justifyContent: 'center',
borderRadius: null,
borderBottomColor: 'transparent',
backgroundColor: variables.tabBgColor,
},
height: 45,
flexDirection: 'row',
justifyContent: 'space-around',
borderWidth: 1,
borderTopWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomColor: '#ccc',
</s> add ...tabBarTheme(variables), </s> remove
</s> add 'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
fontWeight: '600',
},
flex: 1,
marginLeft: 10,
alignItems: null,
},
'NativeBase.Icon': {
fontSize: variables.iconFontSize,
},
'NativeBase.IconNB': {
fontSize: variables.iconFontSize,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
'.cardBody': {
flexDirection: 'column',
'NativeBase.Text': {
marginTop: 5,
},
},
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
marginRight: 20,
},
lineHeight: 20,
},
flex: 1,
alignItems: 'flex-start',
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
},
'.header': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
borderBottomWidth: null,
},
'.footer': {
'NativeBase.Text': {
fontSize: 17,
fontWeight: '600',
},
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '500',
},
padding: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor, </s> remove '.floatingLabel': {
'NativeBase.Input': {
height: 55,
top: 10,
},
},
'.fixedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
flex: 1,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
flex: 2,
fontSize: variables.inputFontSize,
},
},
'.stackedLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingTop: 5,
paddingLeft: 10,
alignSelf: 'flex-start',
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
alignSelf: (Platform.OS === 'ios') ? 'stretch' : 'flex-start',
flex: 1,
width: (Platform.OS === 'ios') ? null : variables.deviceWidth - 25,
paddingTop: 10,
paddingLeft: 10,
fontSize: variables.inputFontSize,
},
flexDirection: null,
},
'.inlineLabel': {
'NativeBase.Label': {
position: null,
top: null,
left: null,
right: null,
paddingLeft: 10,
paddingRight: 20,
height: null,
width: null,
fontSize: variables.inputFontSize,
},
'NativeBase.Input': {
paddingLeft: 5,
fontSize: variables.inputFontSize,
},
flexDirection: 'row',
},
'NativeBase.Label': {
position: 'absolute',
top: 10,
left: 15,
right: 0,
fontSize: variables.inputFontSize,
color: variables.inputColorPlaceholder,
},
'NativeBase.Icon': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.IconNB': {
fontSize: 24,
color: variables.topTabBarActiveTextColor,
paddingHorizontal: 5,
},
'NativeBase.Input': {
height: variables.inputHeightBase,
color: variables.inputColor,
paddingRight: 5,
paddingLeft: 10,
flex: 1,
fontSize: variables.inputFontSize,
lineHeight: variables.inputLineHeight,
},
'.underline': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
},
'.regular': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderColor: variables.inputBorderColor,
},
'.rounded': {
'.success': {
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderRadius: 30,
borderColor: variables.inputBorderColor,
},
'.success': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputSuccessBorderColor,
},
'.regular': {
borderColor: variables.inputSuccessBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputSuccessBorderColor,
},
borderColor: variables.inputSuccessBorderColor,
},
'.error': {
'.rounded': {
borderRadius: 30,
borderColor: variables.inputErrorBorderColor,
},
'.regular': {
borderColor: variables.inputErrorBorderColor,
},
'.underline': {
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputErrorBorderColor,
},
borderColor: variables.inputErrorBorderColor,
},
paddingLeft: 5,
borderWidth: variables.borderWidth,
borderTopWidth: 0,
borderRightWidth: 0,
borderLeftWidth: 0,
borderColor: variables.inputBorderColor,
backgroundColor: 'transparent',
flexDirection: 'row',
alignItems: 'center',
</s> add ...itemTheme(variables), </s> remove 'NativeBase.Left': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-start',
},
'NativeBase.Body': {
flex: 1,
alignItems: 'center',
alignSelf: 'center',
'NativeBase.Button': {
alignSelf: 'center',
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.Text': {
color: variables.titleFontColor,
},
},
},
'NativeBase.Right': {
'NativeBase.Button': {
'.transparent': {
backgroundColor: 'transparent',
borderColor: null,
elevation: 0,
shadowColor: null,
shadowOffset: null,
shadowRadius: null,
shadowOpacity: null,
},
'NativeBase.Icon': {
color: variables.topTabBarActiveTextColor,
},
'NativeBase.IconNB': {
color: variables.topTabBarActiveTextColor,
},
alignSelf: null,
},
flex: 1,
alignSelf: 'center',
alignItems: 'flex-end',
},
backgroundColor: variables.footerDefaultBg,
flexDirection: 'row',
justifyContent: 'center',
borderTopWidth: (Platform.OS === 'ios') ? 1 : undefined,
borderColor: (Platform.OS === 'ios') ? '#cbcbcb' : undefined,
height: variables.footerHeight,
elevation: 3,
position: 'absolute',
bottom: (Platform.OS === 'ios') ? 0 : 23,
left: 0,
right: 0,
</s> add ...footerTheme(variables), </s> remove 'NativeBase.InputGroup': {
'NativeBase.Icon': {
paddingRight: 5,
},
'NativeBase.IconNB': {
paddingRight: 5,
},
'NativeBase.Input': {
'.inlineLabel': {
},
paddingHorizontal: 5,
},
flex: 1,
borderWidth: null,
margin: -10,
borderBottomColor: 'transparent',
},
'NativeBase.CheckBox': {
marginLeft: -10,
},
'.itemDivider': {
borderBottomWidth: variables.borderWidth,
height: variables.listItemHeight,
marginLeft: null,
padding: variables.listItemPadding,
backgroundColor: variables.listDividerBg,
flexDirection: 'row',
borderColor: variables.listBorderColor,
'NativeBase.Text': {
fontSize: 16,
fontWeight: '600',
},
},
'NativeBase.Left': {
'NativeBase.Body': {
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
fontWeight: '600',
},
marginLeft: 10,
alignItems: null,
alignSelf: null,
},
'NativeBase.Icon': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.IconNB': {
width: variables.iconFontSize,
fontSize: variables.iconFontSize,
lineHeight: (Platform.OS === 'ios') ? 34 : undefined,
},
'NativeBase.Text': {
marginLeft: 10,
alignSelf: 'center',
},
flexDirection: 'row',
marginLeft: -variables.listItemPadding,
},
'NativeBase.Body': {
'NativeBase.Text': {
marginHorizontal: variables.listItemPadding,
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
},
alignSelf: null,
alignItems: null,
},
'NativeBase.Right': {
'NativeBase.Badge': {
alignSelf: null,
},
'NativeBase.Button': {
alignSelf: null,
},
'NativeBase.Icon': {
alignSelf: null,
},
'NativeBase.IconNB': {
alignSelf: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
'NativeBase.Thumbnail': {
alignSelf: null,
},
'NativeBase.Image': {
alignSelf: null,
},
'NativeBase.Radio': {
alignSelf: null,
},
'NativeBase.Checkbox': {
alignSelf: null,
},
'NativeBase.Switch': {
alignSelf: null,
},
padding: null,
},
'NativeBase.Text': {
'.note': {
color: variables.listNoteColor,
fontWeight: '200',
},
alignSelf: null,
},
flexDirection: 'row',
padding: variables.listItemPadding,
marginLeft: variables.listItemPadding,
borderBottomWidth: variables.borderWidth,
backgroundColor: variables.listBg,
borderColor: variables.listBorderColor,
</s> add ...listItemTheme(variables), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/93520b7e31fb8d22c15720132dd22a096259639e | theme/index.js |
import { Hoverable } from './../../../utils'; | <mask> import { RadioContext } from './RadioGroup';
<mask> import type { IRadioProps } from './props';
<mask> import { useRadio } from './useRadio';
<mask>
<mask> const Radio = ({ icon, children, ...props }: IRadioProps, ref: any) => {
<mask> const contextState = React.useContext(RadioContext);
<mask>
</s> Fixes for Radio design and added Hoverable utility for web </s> remove //@ts-ignore
color: icon.props.color ? icon.props.color : iconColor,
</s> add color:
//@ts-ignore
icon.props.color ?? checked
? isDisabled
? borderColor
: activeColor
: borderColor, </s> remove <Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
backgroundColor={
checked ? (isDisabled ? borderColor : activeColor) : 'transparent'
}
borderColor={
checked
? isDisabled || isInvalid
</s> add <Hoverable>
{(isHovered: boolean) => {
const outlineColor =
isHovered && !isDisabled
? activeColor
: checked
? isDisabled </s> remove : mode('muted.200', 'muted.600')(props),
</s> add : mode('muted.400', 'muted.600')(props), </s> remove : borderColor
}
borderWidth={2}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle-medium"
type="MaterialCommunityIcons"
size={size}
color={iconColor}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
</s> add : borderColor;
return (
<Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
borderColor={outlineColor}
backgroundColor={isDisabled ? 'muted.200' : 'transparent'}
borderWidth={1}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
p={'2px'}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle"
type="MaterialCommunityIcons"
size={size}
color={
checked
? isDisabled
? borderColor
: activeColor
: 'transparent'
}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
);
}}
</Hoverable> | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/936e34838acba42567b60aa8cbf50b9fc9459821 | src/components/primitives/Radio/Radio.tsx |
color:
//@ts-ignore
icon.props.color ?? checked
? isDisabled
? borderColor
: activeColor
: borderColor, | <mask> const sizedIcon = () =>
<mask> //@ts-ignore
<mask> React.cloneElement(icon, {
<mask> size,
<mask> //@ts-ignore
<mask> color: icon.props.color ? icon.props.color : iconColor,
<mask> });
<mask>
<mask> const { inputProps } = useRadio(props, contextState, null);
<mask> const { checked, disabled: isDisabled } = inputProps;
<mask>
</s> Fixes for Radio design and added Hoverable utility for web </s> remove <Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
backgroundColor={
checked ? (isDisabled ? borderColor : activeColor) : 'transparent'
}
borderColor={
checked
? isDisabled || isInvalid
</s> add <Hoverable>
{(isHovered: boolean) => {
const outlineColor =
isHovered && !isDisabled
? activeColor
: checked
? isDisabled </s> remove : mode('muted.200', 'muted.600')(props),
</s> add : mode('muted.400', 'muted.600')(props), </s> remove : borderColor
}
borderWidth={2}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle-medium"
type="MaterialCommunityIcons"
size={size}
color={iconColor}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
</s> add : borderColor;
return (
<Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
borderColor={outlineColor}
backgroundColor={isDisabled ? 'muted.200' : 'transparent'}
borderWidth={1}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
p={'2px'}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle"
type="MaterialCommunityIcons"
size={size}
color={
checked
? isDisabled
? borderColor
: activeColor
: 'transparent'
}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
);
}}
</Hoverable> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/936e34838acba42567b60aa8cbf50b9fc9459821 | src/components/primitives/Radio/Radio.tsx |
<Hoverable>
{(isHovered: boolean) => {
const outlineColor =
isHovered && !isDisabled
? activeColor
: checked
? isDisabled | <mask> const { checked, disabled: isDisabled } = inputProps;
<mask>
<mask> return (
<mask> <TouchableOpacity activeOpacity={1} ref={ref} {...inputProps}>
<mask> <Box
<mask> flexDirection="row"
<mask> justifyContent="center"
<mask> alignItems="center"
<mask> {...newProps}
<mask> opacity={isDisabled ? 0.4 : 1}
<mask> {...(Platform.OS === 'web'
<mask> ? {
<mask> disabled: isDisabled,
<mask> cursor: isDisabled ? 'not-allowed' : 'auto',
<mask> }
<mask> : {})}
<mask> >
<mask> <Box
<mask> backgroundColor={
<mask> checked ? (isDisabled ? borderColor : activeColor) : 'transparent'
<mask> }
<mask> borderColor={
<mask> checked
<mask> ? isDisabled || isInvalid
<mask> ? borderColor
<mask> : activeColor
<mask> : borderColor
<mask> }
<mask> borderWidth={2}
</s> Fixes for Radio design and added Hoverable utility for web </s> remove : borderColor
}
borderWidth={2}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle-medium"
type="MaterialCommunityIcons"
size={size}
color={iconColor}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
</s> add : borderColor;
return (
<Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
borderColor={outlineColor}
backgroundColor={isDisabled ? 'muted.200' : 'transparent'}
borderWidth={1}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
p={'2px'}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle"
type="MaterialCommunityIcons"
size={size}
color={
checked
? isDisabled
? borderColor
: activeColor
: 'transparent'
}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
);
}}
</Hoverable> </s> remove //@ts-ignore
color: icon.props.color ? icon.props.color : iconColor,
</s> add color:
//@ts-ignore
icon.props.color ?? checked
? isDisabled
? borderColor
: activeColor
: borderColor, </s> remove : mode('muted.200', 'muted.600')(props),
</s> add : mode('muted.400', 'muted.600')(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/936e34838acba42567b60aa8cbf50b9fc9459821 | src/components/primitives/Radio/Radio.tsx |
: borderColor;
return (
<Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
borderColor={outlineColor}
backgroundColor={isDisabled ? 'muted.200' : 'transparent'}
borderWidth={1}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
p={'2px'}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle"
type="MaterialCommunityIcons"
size={size}
color={
checked
? isDisabled
? borderColor
: activeColor
: 'transparent'
}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
);
}}
</Hoverable> | <mask> checked
<mask> ? isDisabled || isInvalid
<mask> ? borderColor
<mask> : activeColor
<mask> : borderColor
<mask> }
<mask> borderWidth={2}
<mask> display="flex"
<mask> justifyContent="center"
<mask> alignItems="center"
<mask> borderRadius={999}
<mask> >
<mask> {icon && checked ? (
<mask> sizedIcon()
<mask> ) : (
<mask> <Icon
<mask> name="circle-medium"
<mask> type="MaterialCommunityIcons"
<mask> size={size}
<mask> color={iconColor}
<mask> opacity={checked ? 1 : 0}
<mask> />
<mask> )}
<mask> </Box>
<mask> {children}
<mask> </Box>
<mask> </TouchableOpacity>
<mask> );
<mask> };
<mask>
<mask> export default React.memo(
</s> Fixes for Radio design and added Hoverable utility for web </s> remove <Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
backgroundColor={
checked ? (isDisabled ? borderColor : activeColor) : 'transparent'
}
borderColor={
checked
? isDisabled || isInvalid
</s> add <Hoverable>
{(isHovered: boolean) => {
const outlineColor =
isHovered && !isDisabled
? activeColor
: checked
? isDisabled </s> remove //@ts-ignore
color: icon.props.color ? icon.props.color : iconColor,
</s> add color:
//@ts-ignore
icon.props.color ?? checked
? isDisabled
? borderColor
: activeColor
: borderColor, </s> remove : mode('muted.200', 'muted.600')(props),
</s> add : mode('muted.400', 'muted.600')(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/936e34838acba42567b60aa8cbf50b9fc9459821 | src/components/primitives/Radio/Radio.tsx |
: mode('muted.400', 'muted.600')(props), | <mask> return {
<mask> activeColor,
<mask> borderColor: isInvalid
<mask> ? mode('danger.500', 'danger.200')(props)
<mask> : mode('muted.200', 'muted.600')(props),
<mask> iconColor: mode('gray.50', 'gray.800')(props), //matching background color.
<mask> };
<mask> };
<mask>
<mask> const sizes = {
</s> Fixes for Radio design and added Hoverable utility for web </s> remove <Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
backgroundColor={
checked ? (isDisabled ? borderColor : activeColor) : 'transparent'
}
borderColor={
checked
? isDisabled || isInvalid
</s> add <Hoverable>
{(isHovered: boolean) => {
const outlineColor =
isHovered && !isDisabled
? activeColor
: checked
? isDisabled </s> remove //@ts-ignore
color: icon.props.color ? icon.props.color : iconColor,
</s> add color:
//@ts-ignore
icon.props.color ?? checked
? isDisabled
? borderColor
: activeColor
: borderColor, </s> remove : borderColor
}
borderWidth={2}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle-medium"
type="MaterialCommunityIcons"
size={size}
color={iconColor}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
</s> add : borderColor;
return (
<Box
flexDirection="row"
justifyContent="center"
alignItems="center"
{...newProps}
opacity={isDisabled ? 0.4 : 1}
{...(Platform.OS === 'web'
? {
disabled: isDisabled,
cursor: isDisabled ? 'not-allowed' : 'auto',
}
: {})}
>
<Box
borderColor={outlineColor}
backgroundColor={isDisabled ? 'muted.200' : 'transparent'}
borderWidth={1}
display="flex"
justifyContent="center"
alignItems="center"
borderRadius={999}
p={'2px'}
>
{icon && checked ? (
sizedIcon()
) : (
<Icon
name="circle"
type="MaterialCommunityIcons"
size={size}
color={
checked
? isDisabled
? borderColor
: activeColor
: 'transparent'
}
opacity={checked ? 1 : 0}
/>
)}
</Box>
{children}
</Box>
);
}}
</Hoverable> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/936e34838acba42567b60aa8cbf50b9fc9459821 | src/theme/components/radio.ts |
animationPreset, | <mask> closeOnOverlayClick = false,
<mask> isKeyboardDismissable = true,
<mask> overlayVisible = true,
<mask> backdropVisible = true,
<mask> animationPreset = 'fade',
<mask> ...rest
<mask> }: IAlertDialogProps,
<mask> ref: any
<mask> ) => {
<mask> const bottomInset = useKeyboardBottomInset();
</s> fix: added modal pseudo props </s> remove //@ts-ignore - internal purpose only
animationPreset = 'fade',
</s> add animationPreset, </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/AlertDialog/AlertDialog.tsx |
import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; | <mask> import React, { memo, forwardRef } from 'react';
<mask> import Box, { IBoxProps } from '../../primitives/Box';
<mask> import { usePropsResolution } from '../../../hooks';
<mask> import { ScrollView } from 'react-native';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask>
<mask> const AlertDialogBody = (props: IBoxProps, ref?: any) => {
<mask> const newProps = usePropsResolution('AlertDialogBody', props);
<mask> //TODO: refactor for responsive prop
</s> fix: added modal pseudo props </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/AlertDialog/AlertDialogBody.tsx |
const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); | <mask> import { usePropsResolution } from '../../../hooks';
<mask> import { ScrollView } from 'react-native';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask>
<mask> const AlertDialogBody = (props: IBoxProps, ref?: any) => {
<mask> const newProps = usePropsResolution('AlertDialogBody', props);
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps(props)) {
<mask> return null;
<mask> }
<mask> return (
</s> fix: added modal pseudo props </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove <ScrollView>
<Box {...newProps} ref={ref}>
{props.children}
</s> add <ScrollView {..._scrollview}>
<Box {...resolvedProps} ref={ref}>
{children} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/AlertDialog/AlertDialogBody.tsx |
<ScrollView {..._scrollview}>
<Box {...resolvedProps} ref={ref}>
{children} | <mask> if (useHasResponsiveProps(props)) {
<mask> return null;
<mask> }
<mask> return (
<mask> <ScrollView>
<mask> <Box {...newProps} ref={ref}>
<mask> {props.children}
<mask> </Box>
<mask> </ScrollView>
<mask> );
<mask> };
<mask>
</s> fix: added modal pseudo props </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/AlertDialog/AlertDialogBody.tsx |
* Sets the animation type
* @default "fade" | <mask> * Props applied on Child Slide Animation.
<mask> */
<mask> _slide?: ISlideProps;
<mask> /**
<mask> * Prop applied to change Animation.
<mask> */
<mask> animationPreset?: 'slide' | 'fade';
<mask> }
<mask>
<mask> export type IAlertDialogComponentType = ((
</s> fix: added modal pseudo props </s> remove <Slide in={visible} overlay={false} duration={200}>
</s> add <Slide in={visible} overlay={false} duration={200} {..._slide}> </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/AlertDialog/types.ts |
animationPreset, | <mask> closeOnOverlayClick = true,
<mask> isKeyboardDismissable = true,
<mask> overlayVisible = true,
<mask> backdropVisible = true,
<mask> //@ts-ignore - internal purpose only
<mask> animationPreset = 'fade',
<mask> ...rest
<mask> }: IModalProps,
<mask> ref: any
<mask> ) => {
<mask> const bottomInset = useKeyboardBottomInset();
</s> fix: added modal pseudo props </s> remove animationPreset = 'fade',
</s> add animationPreset, </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/Modal.tsx |
_backdropFade,
_fade,
_slide, | <mask> _backdrop,
<mask> _child,
<mask> ...resolvedProps
<mask> } = usePropsResolution('Modal', rest);
<mask>
<mask> const [visible, setVisible] = useControllableState({
<mask> value: isOpen,
<mask> defaultValue: defaultIsOpen,
</s> fix: added modal pseudo props </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; </s> remove animationPreset = 'fade',
</s> add animationPreset, </s> remove //@ts-ignore - internal purpose only
animationPreset = 'fade',
</s> add animationPreset, | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/Modal.tsx |
{..._backdropFade} | <mask> entryDuration={200}
<mask> in={visible}
<mask> style={StyleSheet.absoluteFill}
<mask> >
<mask> {overlayVisible && backdropVisible && (
<mask> <Backdrop
<mask> onPress={() => {
<mask> closeOnOverlayClick && handleClose();
</s> fix: added modal pseudo props </s> remove <Slide in={visible} overlay={false} duration={200}>
</s> add <Slide in={visible} overlay={false} duration={200} {..._slide}> </s> remove animationPreset = 'fade',
</s> add animationPreset, </s> remove //@ts-ignore - internal purpose only
animationPreset = 'fade',
</s> add animationPreset, </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/Modal.tsx |
<Slide in={visible} overlay={false} duration={200} {..._slide}> | <mask> />
<mask> )}
<mask> </Fade>
<mask> {animationPreset === 'slide' ? (
<mask> <Slide in={visible} overlay={false} duration={200}>
<mask> <FocusScope
<mask> contain={visible}
<mask> autoFocus={visible && !initialFocusRef}
<mask> restoreFocus={visible && !finalFocusRef}
<mask> >
</s> fix: added modal pseudo props </s> remove * Prop applied to change Animation.
</s> add * Sets the animation type
* @default "fade" </s> remove <ScrollView>
<Box {...newProps} ref={ref}>
{props.children}
</s> add <ScrollView {..._scrollview}>
<Box {...resolvedProps} ref={ref}>
{children} </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/Modal.tsx |
{..._fade} | <mask> in={visible}
<mask> style={StyleSheet.absoluteFill}
<mask> >
<mask> <FocusScope
<mask> contain={visible}
<mask> autoFocus={visible && !initialFocusRef}
<mask> restoreFocus={visible && !finalFocusRef}
<mask> >
</s> fix: added modal pseudo props </s> remove <Slide in={visible} overlay={false} duration={200}>
</s> add <Slide in={visible} overlay={false} duration={200} {..._slide}> </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/Modal.tsx |
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, | <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask> import { ScrollView, IScrollViewProps } from '../../basic/ScrollView';
<mask>
<mask> const ModalBody = (
<mask> {
<mask> children,
<mask> _scrollview,
<mask> ...props
<mask> }: IBoxProps & { _scrollview?: IScrollViewProps },
<mask> ref?: any
<mask> ) => {
<mask> const resolvedProps = usePropsResolution('ModalBody', props);
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps(props)) {
</s> fix: added modal pseudo props </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; </s> remove animationPreset = 'fade',
</s> add animationPreset, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/ModalBody.tsx |
const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); | <mask> ...props
<mask> }: IBoxProps & { _scrollview?: IScrollViewProps },
<mask> ref?: any
<mask> ) => {
<mask> const resolvedProps = usePropsResolution('ModalBody', props);
<mask> //TODO: refactor for responsive prop
<mask> if (useHasResponsiveProps(props)) {
<mask> return null;
<mask> }
<mask> return (
</s> fix: added modal pseudo props </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove <ScrollView>
<Box {...newProps} ref={ref}>
{props.children}
</s> add <ScrollView {..._scrollview}>
<Box {...resolvedProps} ref={ref}>
{children} </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; </s> remove animationPreset = 'fade',
</s> add animationPreset, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/ModalBody.tsx |
import type { IFadeProps, ISlideProps } from '../Transitions'; | <mask>
<mask> import type { ResponsiveValue } from '../../../components/types';
<mask> import type { ISizes } from '../../../theme/base/sizes';
<mask> import type { IScrollViewProps } from '../../basic/ScrollView';
<mask>
<mask> export interface IModalProps extends IBoxProps<IModalProps> {
<mask> /**
<mask> * If true, the modal will open. Useful for controllable state behaviour
<mask> */
</s> fix: added modal pseudo props </s> remove import { ScrollView } from 'react-native';
</s> add import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; </s> remove * Prop applied to change Animation.
</s> add * Sets the animation type
* @default "fade" </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/types.ts |
/**
* Props applied on Overlay Animation.
*/
_backdropFade?: IFadeProps;
/**
* Props applied on Child Fade Animation.
*/
_fade?: IFadeProps;
/**
* Props applied on Child Slide Animation.
*/
_slide?: ISlideProps; | <mask> */
<mask> animationPreset?: 'fade' | 'slide';
<mask> }
<mask>
<mask> export type IModalComponentType = ((
<mask> props: IModalProps & { ref?: MutableRefObject<any> }
</s> fix: added modal pseudo props </s> remove * Prop applied to change Animation.
</s> add * Sets the animation type
* @default "fade" </s> remove const AlertDialogBody = (props: IBoxProps, ref?: any) => {
const newProps = usePropsResolution('AlertDialogBody', props);
</s> add const AlertDialogBody = (
{ children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps },
ref?: any
) => {
const { _scrollview, ...resolvedProps } = usePropsResolution(
'AlertDialogBody',
props
); </s> remove {
children,
_scrollview,
...props
}: IBoxProps & { _scrollview?: IScrollViewProps },
</s> add { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, </s> remove const resolvedProps = usePropsResolution('ModalBody', props);
</s> add const { _scrollview, ...resolvedProps } = usePropsResolution(
'ModalBody',
props
); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9391bc80aa83668a2781c31c798cd9588fb1f30a | src/components/composites/Modal/types.ts |
console.log('childrenArray: ', this.props.children) | <mask> var inputProps = {};
<mask> var newChildren = [];
<mask> var childrenArray = React.Children.toArray(this.props.children);
<mask>
<mask> var iconElement = [];
<mask> iconElement = _.remove(childrenArray, function(item) {
<mask> if(item.type == Icon) {
</s> allow for null value iconElement </s> remove if(this.props.iconRight) {
</s> add if(this.props.iconRight && iconElement.length > 0) { </s> remove newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
</s> add if(iconElement.length > 0){
newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94c7913622f489a185564fdbad215f38e71a2366 | Components/Widgets/InputGroup.js |
if(this.props.iconRight && iconElement.length > 0) { | <mask> }
<mask>
<mask> if(Array.isArray(this.props.children)) {
<mask>
<mask> if(this.props.iconRight) {
<mask> if(clonedInp) {
<mask> newChildren.push(clonedInp);
<mask> }
<mask> newChildren.push(React.cloneElement(iconElement[0],this.getIconProps(iconElement[0])));
<mask> }
</s> allow for null value iconElement </s> remove newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
</s> add if(iconElement.length > 0){
newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94c7913622f489a185564fdbad215f38e71a2366 | Components/Widgets/InputGroup.js |
if(iconElement.length > 0){
newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
} | <mask> key: 'icon1'
<mask> }
<mask> ));
<mask> } else {
<mask> newChildren.push(React.cloneElement(iconElement[0], this.getIconProps(iconElement[0])));
<mask> if(clonedInp) {
<mask> newChildren.push(clonedInp);
<mask> }
<mask> }
<mask> }
</s> allow for null value iconElement </s> remove if(this.props.iconRight) {
</s> add if(this.props.iconRight && iconElement.length > 0) { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94c7913622f489a185564fdbad215f38e71a2366 | Components/Widgets/InputGroup.js |
/**
* vendor react-native-drawer
*/
interface DrawerStyles {
drawer?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
main?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
drawerOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
mainOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
}
interface Drawer {
acceptDoubleTap?: boolean;
acceptPan?: boolean;
acceptTap?: boolean;
captureGestures?: boolean;
children?: any;
open?: boolean;
closedDrawerOffset?: number;
content?: any;
deviceScreen?: ReactNative.ScaledSize;
disabled?: boolean;
initializeOpen?: boolean;
negotiatePan?: boolean;
onClose?: Function;
onCloseStart?: Function;
onOpen?: Function;
onOpenStart?: Function;
openDrawerOffset?: number;
openDrawerThreshold?: number;
panCloseMask?: number;
panOpenMask?: number;
panStartCompensation?: boolean;
relativeDrag?: boolean;
side?: "left" | "right";
styles?: DrawerStyles;
tapToClose?: boolean;
tweenDuration?: number;
tweenEasing?: string;
tweenHandler?: Function;
type?: "overlay" | "static" | "displace";
} | <mask> progress?: number;
<mask> color?: string;
<mask> inverse?: boolean;
<mask> }
<mask>
<mask> interface ScrollableTab {
<mask> goToPage?: Function;
<mask> activeTab?: number;
<mask> tabs?: Array<any>;
<mask> backgroundColor?: string;
</s> Revert "Removed Drawer from NativeBase" | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | index.d.ts |
* NativeBase.Drawer
*/
export class Drawer extends React.Component<NativeBase.Drawer, any> {}
/** | <mask> export class ProgressBar extends React.Component<NativeBase.ProgressBar, any> {}
<mask> /**
<mask> * NativeBase.ScrollableTab
<mask> */
<mask> export class ScrollableTab extends React.Component<NativeBase.ScrollableTab, any> { }
<mask> /**
<mask> * NativeBase.Tabs
<mask> *
</s> Revert "Removed Drawer from NativeBase" </s> remove
</s> add /**
* vendor react-native-drawer
*/
interface DrawerStyles {
drawer?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
main?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
drawerOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
mainOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
}
interface Drawer {
acceptDoubleTap?: boolean;
acceptPan?: boolean;
acceptTap?: boolean;
captureGestures?: boolean;
children?: any;
open?: boolean;
closedDrawerOffset?: number;
content?: any;
deviceScreen?: ReactNative.ScaledSize;
disabled?: boolean;
initializeOpen?: boolean;
negotiatePan?: boolean;
onClose?: Function;
onCloseStart?: Function;
onOpen?: Function;
onOpenStart?: Function;
openDrawerOffset?: number;
openDrawerThreshold?: number;
panCloseMask?: number;
panOpenMask?: number;
panStartCompensation?: boolean;
relativeDrag?: boolean;
side?: "left" | "right";
styles?: DrawerStyles;
tapToClose?: boolean;
tweenDuration?: number;
tweenEasing?: string;
tweenHandler?: Function;
type?: "overlay" | "static" | "displace";
} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | index.d.ts |
"react-native-drawer": "2.5.0", | <mask> "print-message": "^2.1.0",
<mask> "prop-types": "^15.5.10",
<mask> "react-native-easy-grid": "0.2.0",
<mask> "react-native-keyboard-aware-scroll-view": "0.5.0",
<mask> "react-native-vector-icons": "4.6.0",
<mask> "react-tween-state": "^0.1.5",
<mask> "tween-functions": "^1.0.1"
<mask> },
</s> Revert "Removed Drawer from NativeBase" | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | package.json |
import Drawer from "./basic/Drawer"; | <mask> import setDefaultThemeStyle from "./init";
<mask> import getTheme from "./theme/components";
<mask> import variables from "./theme/variables/platform";
<mask> import { SwipeRow } from "./basic/SwipeRow";
<mask> import { Text } from "./basic/Text";
<mask> import { ViewNB as View } from "./basic/View";
<mask> import { Button } from "./basic/Button";
</s> Revert "Removed Drawer from NativeBase" </s> remove
</s> add /**
* vendor react-native-drawer
*/
interface DrawerStyles {
drawer?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
main?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
drawerOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
mainOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
}
interface Drawer {
acceptDoubleTap?: boolean;
acceptPan?: boolean;
acceptTap?: boolean;
captureGestures?: boolean;
children?: any;
open?: boolean;
closedDrawerOffset?: number;
content?: any;
deviceScreen?: ReactNative.ScaledSize;
disabled?: boolean;
initializeOpen?: boolean;
negotiatePan?: boolean;
onClose?: Function;
onCloseStart?: Function;
onOpen?: Function;
onOpenStart?: Function;
openDrawerOffset?: number;
openDrawerThreshold?: number;
panCloseMask?: number;
panOpenMask?: number;
panStartCompensation?: boolean;
relativeDrag?: boolean;
side?: "left" | "right";
styles?: DrawerStyles;
tapToClose?: boolean;
tweenDuration?: number;
tweenEasing?: string;
tweenHandler?: Function;
type?: "overlay" | "static" | "displace";
} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | src/index.js |
Drawer, | <mask> variables,
<mask> StyleProvider,
<mask> connectStyle,
<mask> Button,
<mask> DatePicker,
<mask> IconNB,
<mask> Icon,
<mask> Header,
</s> Revert "Removed Drawer from NativeBase" | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | src/index.js |
import Drawer from "./basic/Drawer"; | <mask> import { StyleProvider } from "native-base-shoutem-theme";
<mask> // import { Gravatar } from "./basic/Gravatar";
<mask> import { Col, Row, Grid } from "react-native-easy-grid";
<mask> import { SwipeRow } from "./basic/SwipeRow";
<mask> import { Text } from "./basic/Text";
<mask> import { ViewNB as View } from "./basic/View";
<mask> import { Button } from "./basic/Button";
<mask> import { DatePicker } from "./basic/DatePicker";
</s> Revert "Removed Drawer from NativeBase" </s> remove
</s> add /**
* vendor react-native-drawer
*/
interface DrawerStyles {
drawer?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
main?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
drawerOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
mainOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
}
interface Drawer {
acceptDoubleTap?: boolean;
acceptPan?: boolean;
acceptTap?: boolean;
captureGestures?: boolean;
children?: any;
open?: boolean;
closedDrawerOffset?: number;
content?: any;
deviceScreen?: ReactNative.ScaledSize;
disabled?: boolean;
initializeOpen?: boolean;
negotiatePan?: boolean;
onClose?: Function;
onCloseStart?: Function;
onOpen?: Function;
onOpenStart?: Function;
openDrawerOffset?: number;
openDrawerThreshold?: number;
panCloseMask?: number;
panOpenMask?: number;
panStartCompensation?: boolean;
relativeDrag?: boolean;
side?: "left" | "right";
styles?: DrawerStyles;
tapToClose?: boolean;
tweenDuration?: number;
tweenEasing?: string;
tweenHandler?: Function;
type?: "overlay" | "static" | "displace";
} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | src/vue-native.js |
Vue.component("nb-drawer", Drawer); | <mask> // It takes the global Vue object as well as user-defined options.
<mask> install(Vue, options) {
<mask> Vue.component("nb-row", Row);
<mask> Vue.component("nb-col", Col);
<mask> Vue.component("nb-grid", Grid);
<mask> Vue.component("nb-swipe-row", SwipeRow);
<mask> Vue.component("nb-text", Text);
<mask> Vue.component("nb-view", View);
</s> Revert "Removed Drawer from NativeBase" </s> remove
</s> add /**
* vendor react-native-drawer
*/
interface DrawerStyles {
drawer?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
main?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
drawerOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
mainOverlay?: ReactNative.ViewStyle | Array<ReactNative.ViewStyle>;
}
interface Drawer {
acceptDoubleTap?: boolean;
acceptPan?: boolean;
acceptTap?: boolean;
captureGestures?: boolean;
children?: any;
open?: boolean;
closedDrawerOffset?: number;
content?: any;
deviceScreen?: ReactNative.ScaledSize;
disabled?: boolean;
initializeOpen?: boolean;
negotiatePan?: boolean;
onClose?: Function;
onCloseStart?: Function;
onOpen?: Function;
onOpenStart?: Function;
openDrawerOffset?: number;
openDrawerThreshold?: number;
panCloseMask?: number;
panOpenMask?: number;
panStartCompensation?: boolean;
relativeDrag?: boolean;
side?: "left" | "right";
styles?: DrawerStyles;
tapToClose?: boolean;
tweenDuration?: number;
tweenEasing?: string;
tweenHandler?: Function;
type?: "overlay" | "static" | "displace";
} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/94e0786eee55f97eceabd11dab04d9bb9f389000 | src/vue-native.js |
import { Typeahead, Box, Icon, Heading } from 'native-base'; | <mask> import React from 'react';
<mask> import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
<mask>
<mask> let countries = [
<mask> 'Afghanistan',
<mask> 'Australia',
<mask> 'India',
</s> fix: typeahead api and examples </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; </s> remove data,
</s> add options, </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx |
<mask> 'Norway',
<mask> ];
<mask>
<mask> export function UsingComponent() {
<mask> const { colorMode } = useColorMode();
<mask> return (
<mask> <Box>
<mask> <Heading>Typeahead</Heading>
<mask> <Typeahead
<mask> flex={1}
</s> fix: typeahead api and examples </s> remove flex={1}
</s> add </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; </s> remove data,
</s> add options, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx |
|
<mask> return (
<mask> <Box>
<mask> <Heading>Typeahead</Heading>
<mask> <Typeahead
<mask> flex={1}
<mask> mt={4}
<mask> size="2xl"
<mask> numberOfItems={6}
<mask> data={countries}
<mask> renderItem={(item: any) => {
</s> fix: typeahead api and examples </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} </s> remove const { colorMode } = useColorMode();
</s> add </s> remove data.filter((item) =>
</s> add options.filter((item) => | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx |
|
options={countries} | <mask> flex={1}
<mask> mt={4}
<mask> size="2xl"
<mask> numberOfItems={6}
<mask> data={countries}
<mask> renderItem={(item: any) => {
<mask> return (
<mask> <Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<mask> <Text>{item}</Text>
<mask> </Box>
<mask> );
<mask> }}
<mask> toggleIcon={({ isOpen }: any) => {
<mask> return isOpen ? (
<mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={12} />
<mask> ) : (
<mask> <Icon name="arrow-drop-down" type="MaterialIcons" size={12} />
</s> fix: typeahead api and examples </s> remove {renderItem(item)}
</s> add {renderItem ? (
renderItem(item)
) : (
<Box
flex={1}
bg={colorMode === 'light' ? 'gray.100' : 'gray.600'}
p={4}
>
<Text>{item}</Text>
</Box>
)} </s> remove flex={1}
</s> add </s> remove const { colorMode } = useColorMode();
</s> add </s> remove data.filter((item) =>
</s> add options.filter((item) => | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx |
import { UsingComponentWithRenderItem } from './UsingComponentWithRenderItem'; | <mask> import { withKnobs } from '@storybook/addon-knobs';
<mask> import Wrapper from './../../Wrapper';
<mask> import { UsingComponent } from './UsingComponent';
<mask> import { UsingHook } from './UsingHook';
<mask>
<mask> storiesOf('Typeahead', module)
<mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
<mask> .add('Typeahead Component', () => <UsingComponent />)
</s> fix: typeahead api and examples </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
</s> add import { Typeahead, Box, Icon, Heading } from 'native-base'; </s> remove data,
</s> add options, </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/index.tsx |
.add('Typeahead Component with RenderItem', () => (
<UsingComponentWithRenderItem />
)) | <mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
<mask> .add('Typeahead Component', () => <UsingComponent />)
<mask> .add('Custom Typeahead using useTypeahead hook', () => <UsingHook />);
</s> fix: typeahead api and examples </s> remove flex={1}
</s> add </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} </s> remove data.filter((item) =>
</s> add options.filter((item) => | [
"keep",
"keep",
"add",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | example/storybook/stories/components/composites/Typeahead/index.tsx |
import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; | <mask> import React, { useState, useCallback, forwardRef } from 'react';
<mask> import { ScrollView } from 'react-native';
<mask> import { Box, Input, Button, Link } from '../../primitives';
<mask> import { useTypeahead } from './useTypeahead';
<mask> import { extractInObject } from '../../../theme/tools';
<mask> import { ITypeaheadProps, layoutPropsList } from './types';
<mask> const Typeahead = (
<mask> {
</s> fix: typeahead api and examples </s> remove data,
</s> add options, </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
</s> add import { Typeahead, Box, Icon, Heading } from 'native-base'; </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
options, | <mask> import { extractInObject } from '../../../theme/tools';
<mask> import { ITypeaheadProps, layoutPropsList } from './types';
<mask> const Typeahead = (
<mask> {
<mask> data,
<mask> renderItem,
<mask> onChangeText,
<mask> toggleIcon,
<mask> dropdownHeight,
<mask> numberOfItems,
</s> fix: typeahead api and examples </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
</s> add import { Typeahead, Box, Icon, Heading } from 'native-base'; </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
getOptionLabel, | <mask> dropdownHeight,
<mask> numberOfItems,
<mask> onSelectedItemChange,
<mask> inputValue,
<mask> ...props
<mask> }: ITypeaheadProps,
<mask> ref: any
<mask> ) => {
</s> fix: typeahead api and examples </s> remove const [inputItems, setInputItems] = React.useState(data);
</s> add const [inputItems, setInputItems] = React.useState(options); </s> remove data,
</s> add options, </s> remove data.filter((item) =>
</s> add options.filter((item) => </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
const [inputItems, setInputItems] = React.useState(options); | <mask> ...props
<mask> }: ITypeaheadProps,
<mask> ref: any
<mask> ) => {
<mask> const [inputItems, setInputItems] = React.useState(data);
<mask> const [layoutProps, newProps] = extractInObject(props, layoutPropsList);
<mask>
<mask> const {
<mask> isOpen,
<mask> getInputProps,
</s> fix: typeahead api and examples </s> remove data,
</s> add options, </s> remove const { colorMode } = useColorMode();
</s> add </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
const { colorMode } = useColorMode();
let tempOptions: any[] = [];
if (getOptionLabel) {
options.map((value: any, _ind: number) => {
tempOptions.push(getOptionLabel(value));
});
options = tempOptions;
} | <mask> const [inputItems, setInputItems] = React.useState(options);
<mask> const [layoutProps, newProps] = extractInObject(props, layoutPropsList);
<mask>
<mask> const {
<mask> isOpen,
<mask> getInputProps,
</s> fix: typeahead api and examples </s> remove const [inputItems, setInputItems] = React.useState(data);
</s> add const [inputItems, setInputItems] = React.useState(options); </s> remove const { colorMode } = useColorMode();
</s> add </s> remove data,
</s> add options, </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
options.filter((item) => | <mask> itemToString: (item) => item.toString(),
<mask> onInputValueChange: ({ inputValue }) => {
<mask> onChangeText && onChangeText(inputValue);
<mask> setInputItems(
<mask> data.filter((item) =>
<mask> item.toLowerCase().includes(inputValue.toLowerCase())
<mask> )
<mask> );
<mask> },
<mask> onSelectedItemChange,
</s> fix: typeahead api and examples </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} </s> remove const [inputItems, setInputItems] = React.useState(data);
</s> add const [inputItems, setInputItems] = React.useState(options); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
{renderItem ? (
renderItem(item)
) : (
<Box
flex={1}
bg={colorMode === 'light' ? 'gray.100' : 'gray.600'}
p={4}
>
<Text>{item}</Text>
</Box>
)} | <mask> isUnderlined={false}
<mask> key={`${item}${index}`}
<mask> {...getMenuItemProps(item, index)}
<mask> >
<mask> {renderItem(item)}
<mask> </Link>
<mask> ))}
<mask> </ScrollView>
<mask> </Box>
<mask> </Box>
</s> fix: typeahead api and examples </s> remove data={countries}
renderItem={(item: any) => {
return (
<Box bg={colorMode === 'light' ? 'gray.100' : 'gray.600'} p={4}>
<Text>{item}</Text>
</Box>
);
}}
</s> add options={countries} </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; </s> remove data.filter((item) =>
</s> add options.filter((item) => | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/index.tsx |
options: any[];
renderItem?: any; | <mask> import type { IBoxProps, IInputProps } from 'native-base';
<mask>
<mask> export type ITypeaheadProps = IBoxProps &
<mask> IInputProps & {
<mask> data: any[];
<mask> renderItem: any;
<mask> onChange?: Function;
<mask> toggleIcon: any;
<mask> dropdownHeight?: number | string;
<mask> numberOfItems?: number;
<mask> inputValue?: string;
</s> fix: typeahead api and examples </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
</s> add import { Typeahead, Box, Icon, Heading } from 'native-base'; </s> remove import { Box, Input, Button, Link } from '../../primitives';
</s> add import Box from '../../primitives/Box';
import Input from '../../primitives/Input';
import Button from '../../primitives/Button';
import Link from '../../primitives/Link';
import Text from '../../primitives/Text';
import { useColorMode } from './../../..'; </s> remove data,
</s> add options, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/types.ts |
getOptionLabel?: Function; | <mask> numberOfItems?: number;
<mask> inputValue?: string;
<mask> onSelectedItemChange?: any;
<mask> };
<mask> export const layoutPropsList = [
<mask> 'm',
<mask> 'mt',
<mask> 'mb',
</s> fix: typeahead api and examples </s> remove data: any[];
renderItem: any;
</s> add options: any[];
renderItem?: any; </s> remove const { colorMode } = useColorMode();
</s> add </s> remove data,
</s> add options, </s> remove import { Typeahead, Box, Text, Icon, Heading, useColorMode } from 'native-base';
</s> add import { Typeahead, Box, Icon, Heading } from 'native-base'; </s> remove const [inputItems, setInputItems] = React.useState(data);
</s> add const [inputItems, setInputItems] = React.useState(options); | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/9752e160540b60cdc3afc8a0cbd0ce9ef69e1d10 | src/components/composites/Typeahead/types.ts |
import { Flex, Center } from 'native-base'; | <mask> import React from 'react';
<mask> import { Flex, Text, Center } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <Flex height="500px" width="100px">
<mask> <Center w="100px" h="100px" bg="green.500">
</s> fix: updated the code and theme to support api changes </s> remove import styled from 'styled-components/native';
</s> add </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove console.log('newProps =', newProps);
</s> add </s> remove export type ICodeProps = ITextProps &
ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
customBorderProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customBackgroundProps &
BorderProps & {
style?: TextStyle;
children?: string | undefined;
colorScheme?: string | undefined;
};
</s> add export type ICodeProps = IBoxProps & {
colorScheme?: string | undefined;
}; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | example/storybook/stories/components/primitives/Flex/basic.tsx |
<mask> import React from 'react';
<mask> import { Platform } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import Box from '../../primitives/Box';
<mask> import type { ICodeProps } from './types';
<mask>
<mask> const StyledCode = styled(Box)<ICodeProps>({});
</s> fix: updated the code and theme to support api changes </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; </s> remove import { Flex, Text, Center } from 'native-base';
</s> add import { Flex, Center } from 'native-base'; </s> remove console.log('newProps =', newProps);
</s> add </s> remove export type ICodeProps = ITextProps &
ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
customBorderProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customBackgroundProps &
BorderProps & {
style?: TextStyle;
children?: string | undefined;
colorScheme?: string | undefined;
};
</s> add export type ICodeProps = IBoxProps & {
colorScheme?: string | undefined;
}; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/index.tsx |
|
const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); | <mask> import { useThemeProps } from '../../../hooks';
<mask> import Box from '../../primitives/Box';
<mask> import type { ICodeProps } from './types';
<mask>
<mask> const StyledCode = styled(Box)<ICodeProps>({});
<mask>
<mask> const Code = ({ style, ...props }: ICodeProps) => {
<mask> let newProps = useThemeProps('Code', props);
<mask> return (
<mask> <StyledCode
<mask> {...newProps}
<mask> fontFamily={Platform.OS === 'ios' ? 'Courier' : 'monospace'}
<mask> style={style}
</s> fix: updated the code and theme to support api changes </s> remove <StyledCode
{...newProps}
</s> add <Box </s> remove import styled from 'styled-components/native';
</s> add </s> remove console.log('newProps =', newProps);
</s> add </s> remove style={style}
</s> add {...newProps} </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/index.tsx |
<Box | <mask>
<mask> const Code = ({ style, ...props }: ICodeProps) => {
<mask> let newProps = useThemeProps('Code', props);
<mask> return (
<mask> <StyledCode
<mask> {...newProps}
<mask> fontFamily={Platform.OS === 'ios' ? 'Courier' : 'monospace'}
<mask> style={style}
<mask> />
<mask> );
<mask> };
</s> fix: updated the code and theme to support api changes </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove style={style}
</s> add {...newProps} </s> remove console.log('newProps =', newProps);
</s> add </s> remove fontFamily: 'mono',
fontSize: 'sm',
</s> add _text: {
fontFamily: 'mono',
fontSize: 'sm',
}, </s> remove import styled from 'styled-components/native';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/index.tsx |
{...newProps} | <mask> return (
<mask> <StyledCode
<mask> {...newProps}
<mask> fontFamily={Platform.OS === 'ios' ? 'Courier' : 'monospace'}
<mask> style={style}
<mask> />
<mask> );
<mask> };
<mask>
<mask> export type { ICodeProps };
</s> fix: updated the code and theme to support api changes </s> remove <StyledCode
{...newProps}
</s> add <Box </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove export type ICodeProps = ITextProps &
ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
customBorderProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customBackgroundProps &
BorderProps & {
style?: TextStyle;
children?: string | undefined;
colorScheme?: string | undefined;
};
</s> add export type ICodeProps = IBoxProps & {
colorScheme?: string | undefined;
}; </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; </s> remove console.log('newProps =', newProps);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/index.tsx |
import type { IBoxProps } from '../../primitives/Box'; | <mask> import type { TextStyle } from 'react-native';
<mask> import type {
<mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> } from 'styled-system';
<mask> import type {
<mask> customBackgroundProps,
<mask> customBorderProps,
<mask> customExtraProps,
<mask> customLayoutProps,
<mask> customOutlineProps,
<mask> customShadowProps,
<mask> } from '../../../utils/customProps';
<mask> import type { ITextProps } from '../../primitives';
<mask>
<mask> export type ICodeProps = ITextProps &
<mask> ColorProps &
<mask> SpaceProps &
<mask> LayoutProps &
</s> fix: updated the code and theme to support api changes </s> remove export type ICodeProps = ITextProps &
ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
customBorderProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customBackgroundProps &
BorderProps & {
style?: TextStyle;
children?: string | undefined;
colorScheme?: string | undefined;
};
</s> add export type ICodeProps = IBoxProps & {
colorScheme?: string | undefined;
}; </s> remove import styled from 'styled-components/native';
</s> add </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove console.log('newProps =', newProps);
</s> add </s> remove import { Flex, Text, Center } from 'native-base';
</s> add import { Flex, Center } from 'native-base'; | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/types.ts |
export type ICodeProps = IBoxProps & {
colorScheme?: string | undefined;
}; | <mask> customShadowProps,
<mask> } from '../../../utils/customProps';
<mask> import type { ITextProps } from '../../primitives';
<mask>
<mask> export type ICodeProps = ITextProps &
<mask> ColorProps &
<mask> SpaceProps &
<mask> LayoutProps &
<mask> FlexboxProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
<mask> customBackgroundProps &
<mask> BorderProps & {
<mask> style?: TextStyle;
<mask> children?: string | undefined;
<mask> colorScheme?: string | undefined;
<mask> };
</s> fix: updated the code and theme to support api changes </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; </s> remove import styled from 'styled-components/native';
</s> add </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove console.log('newProps =', newProps);
</s> add </s> remove import { Flex, Text, Center } from 'native-base';
</s> add import { Flex, Center } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/Code/types.ts |
<mask> import type { IKbdProps } from './types';
<mask>
<mask> const Kbd = ({ children, ...props }: IKbdProps) => {
<mask> let { _text, ...newProps } = useThemeProps('Kbd', props);
<mask> console.log('newProps =', newProps);
<mask>
<mask> return (
<mask> <Box {...newProps}>
<mask> <Text
<mask> {..._text}
<mask> fontFamily={
</s> fix: updated the code and theme to support api changes </s> remove const StyledCode = styled(Box)<ICodeProps>({});
const Code = ({ style, ...props }: ICodeProps) => {
let newProps = useThemeProps('Code', props);
</s> add const Code = ({ ...props }: ICodeProps) => {
let { ...newProps } = useThemeProps('Code', props); </s> remove <StyledCode
{...newProps}
</s> add <Box </s> remove import styled from 'styled-components/native';
</s> add </s> remove import type { TextStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
} from 'styled-system';
import type {
customBackgroundProps,
customBorderProps,
customExtraProps,
customLayoutProps,
customOutlineProps,
customShadowProps,
} from '../../../utils/customProps';
import type { ITextProps } from '../../primitives';
</s> add import type { IBoxProps } from '../../primitives/Box'; </s> remove import { Flex, Text, Center } from 'native-base';
</s> add import { Flex, Center } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/977758e750745297257fa692a47c77fd8557b1a9 | src/components/composites/KBD/index.tsx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.