Skip to content

Commit

Permalink
Default style for Hr on native
Browse files Browse the repository at this point in the history
  • Loading branch information
koke committed Mar 9, 2019
1 parent 8f5a278 commit 830e289
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/components/src/primitives/hr/index.native.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
/**
* External dependencies
*/
import Hr from 'react-native-hr';
import ReactNativeHr from 'react-native-hr';

export { Hr };
export const Hr = ( originalProps ) => {
const props = {
...originalProps,
lineStyle: {
backgroundColor: '#555d66',
height: 2,
...originalProps.lineStyle,
},
};

return (
<ReactNativeHr { ...props } />
);
};

0 comments on commit 830e289

Please sign in to comment.