2.1.11 • Published 2 years ago

react-native-ameelio-library v2.1.11

Weekly downloads
230
License
ISC
Repository
github
Last release
2 years ago

react-native-ameelio-library

Getting started

Clone this repo, then run npm install to get dependencies.

Run npm run start to launch the expo server. Install the Expo app for Android or iOS, and then connect your phone to the expo server to view the Storybook.

Publish the package with npm run release

Creating a component

In the src folder, identify or create a higher level folder that your component fits well under. Usually, this is the name of whatever section it falls under in the component library section of the figma.

Create a file YourComponent.react.tsx. The component should be entirely self-contained in this file (except assets). As much as you can, use colors, spacings, and stylings from the styles folder. If you component needs a color / spacing / style that is not in a GlobalStyle file but you think would make a good addition, feel free to add it. Do try to stick to naming conventions observed in those files.

Be sure to add a line in src/index.ts importing / exporting your component, organized with other components of the parent directory. This is important so that when the source code is used to build the npm repository, your code is correctly included.

Creating a story

During development, you will likely want to make a story to test your component. Stories go in the storybook/stories folder, and should be sorted into folders to mirror the structure of the src directory. Story files should end in .stories.tsx. The story should be named <ParentDirectory>/<Component>. For example, the story for the Header component in the Typography folder is named Typography/Header.

To get your story to show up in the app, you will need to add import './stories/<ParentDirectory>/<Component>.stories'; to storybook/index.js. For the sake of organization, please keep these imports alphabetical by name of story. This structure preserves the higher level structure of the components and makes them easier to find.

2.1.9

2 years ago

2.1.11

2 years ago

2.1.8

2 years ago

2.0.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.7

2 years ago

2.1.0

2 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.27

3 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago