Skip to content

getamis/qubic-common-ui

 
 

Repository files navigation

react-native-cask-ui

Demo

$ yarn storybook

TODO

  1. Storyboard: Add storybook example for every ui components.
  2. Hooks: Replace class component by functional component with React.memo.
  3. useMemoStyle: Use useMemoStyle or other memorized methods to improve performance.
  4. Remove T: Remove the T prefix of each component props.
  5. Interface: Replace the type definition of each component props by interface.
  6. Renderer: Separate logic and pure renderer.
Storybook Hooks useMemoStyle Remove T Interface Renderer
Alert - ✔️ - ✔️ ✔️ -
Badge ✔️ ✔️ ✔️ ✔️ ✔️
Button ✔️ ✔️ ✔️ ✔️ ✔️
Card ✔️ ✔️ ✔️ ✔️ ✔️
Flex ✔️ ✔️ ✔️ ✔️ ✔️ -
HeaderButtons ✔️ ✔️
KeyboardAvoidingView App Only ✔️ - ✔️ ✔️ -
Image ✔️ ✔️ ✔️ ✔️ ✔️
InputSpinner ✔️ ✔️
List ✔️ ✔️ ✔️
ListItem ✔️ ✔️ ✔️
LoadingSpinner ✔️ ✔️ ✔️
Modal ✔️
Pager ✔️ ✔️
PagerConfig - ✔️ ✔️
Rating ✔️ ✔️ ✔️
ReadMore ✔️ ✔️ ✔️
Screen - ✔️ ✔️ ✔️ ✔️
SearchBar ✔️ ✔️ ✔️ ✔️
Separator ✔️ ✔️ ✔️
Stack ✔️ ✔️ ✔️ ✔️ ✔️ -
Text ✔️ ✔️ ✔️ ✔️ ✔️
TextInput ✔️ ✔️ ✔️ ✔️ ✔️
Toolbar ✔️ ✔️ ✔️

Important

DON'T use defaultProps for any UI Component. It will break the overrides effect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.4%
  • MDX 4.8%
  • JavaScript 1.8%