Skip to content

๐Ÿง™โ€โ™‚๏ธReact Native Boilerplate and Bare minimum components to get you going

Notifications You must be signed in to change notification settings

verypossible/ReactNativeLegos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

React Native Legos

A design system, and component kit to get you jamming on new UI quicker ๐ŸŽธ

This repo is welcoming to all UI components that can help get you jamming on the UI of your RN app.

How to jam ๐Ÿค™

Dependencies

CocoaPods sudo gem install cocoapods

Install Legos

  1. clone this repo
  2. yarn install
  3. cd ios
  4. pod install
  5. cd ..
  6. yarn start
  7. boot the app from Xcode

Directory Structure and Naming Conventions ๐Ÿ“

The UI side of react is all about reusability and composability, and you should be able to take any of these components and drop them into your app. Naming is always subject to change, but please try to keep to this scheme for maintainablity. Should a system wide change ever be made, an announcement will be made in Slack in the #front_end channel. We use PascalCase for our directories, component names, and exports:

Directory

    ๐Ÿ“ ui
      ๐Ÿ“ components
        ๐Ÿ“ ComponentName
          ๐Ÿ“„ ComponentName.tsx
          ๐Ÿ“„ index.ts
        ๐Ÿ“„ index.ts
      ๐Ÿ“ navigation
      ๐Ÿ“ screens
    ๐Ÿ“„ theme.ts

Exports

  export default as ComponentName
  export { default as ComponentName } from "./ComponentName"

Criteria for Submitting PRs ๐ŸŒฎ

  • components written in typescript
  • components use styled-components
  • any system wide shared styles should be written as a variable in the theme.ts file
  • add documentation inline, and add any component API to a readme.md in the component directory
  • all PRs must be reviewed and approved before merging to master
    • if adding a dependency for a component, please include in the PR notes, and note it in the component README.md file

About

๐Ÿง™โ€โ™‚๏ธReact Native Boilerplate and Bare minimum components to get you going

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published