Skip to content

Commit

Permalink
feat: ✨ created Box component
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-B-06 committed Sep 9, 2021
1 parent a21194a commit ba356c2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Box/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { View, ViewProps as RNViewProps } from 'react-native';
import { createComponent } from '../../utils/createComponent';
import { createElement } from '../../utils/createElement';

export type LibraryBoxProps = {};

export type BoxProps = RNViewProps & LibraryBoxProps;

export const Box = createComponent<BoxProps>(
(props) => {
return createElement({
componentType: View,
props: props,
});
},
{ shouldMemo: true }
);

0 comments on commit ba356c2

Please sign in to comment.