Skip to content

Commit

Permalink
feature: rn accordion component
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Mar 3, 2017
1 parent b63cef0 commit fbbb7ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/accordion/demo/basic.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* tslint:disable:no-console */
import React from 'react';
import { View, Text, Platform } from 'react-native';
import { View } from 'react-native';
import { Accordion, List } from 'antd-mobile';

export default class AccordionExmple extends React.Component<any, any> {
Expand Down
1 change: 1 addition & 0 deletions components/accordion/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* tslint:disable:jsx-no-multiline-js */
import React from 'react';
import { View, Text } from 'react-native';
import RNAccordion from 'react-native-collapsible/Accordion';
Expand Down
4 changes: 2 additions & 2 deletions components/accordion/style/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import variables from '../../style/themes/default';
import { StyleSheet, ViewStyle } from 'react-native';
import { StyleSheet } from 'react-native';

export default StyleSheet.create({
container: {
Expand All @@ -10,7 +10,7 @@ export default StyleSheet.create({
flexDirection: 'row',
alignItems: 'center',
paddingLeft: variables.h_spacing_lg,
paddingRight: 2*variables.h_spacing_lg,
paddingRight: 2 * variables.h_spacing_lg,
borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: variables.border_color_base,
},
Expand Down

0 comments on commit fbbb7ce

Please sign in to comment.