-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,649 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @license | ||
* Copyright Akveo. All Rights Reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
View, | ||
ViewProps, | ||
} from 'react-native'; | ||
import { | ||
styled, | ||
StyledComponentProps, | ||
} from '@kitten/theme'; | ||
|
||
export type DividerProps = StyledComponentProps & ViewProps; | ||
export type DividerElement = React.ReactElement<DividerProps>; | ||
|
||
class DividerComponent extends React.Component<DividerProps> { | ||
|
||
static styledComponentName: string = 'Divider'; | ||
|
||
public render(): DividerElement { | ||
const { style, themedStyle, ...restProps } = this.props; | ||
|
||
return ( | ||
<View | ||
{...restProps} | ||
style={[themedStyle, style]} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
export const Divider = styled<DividerProps>(DividerComponent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.