0.0.65 • Published 10 months ago

@plasmatictechnologies/alana-react-native-ui-components v0.0.65

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 months ago

Alana UI Components for React Native

Alana React Native UI components library. Customizable and production-ready

Installation

npm install alana-react-native-ui-components --save

or

yarn add alana-react-native-ui-components

Usage

Overriding style guide

Use <StyleGuideProvider/> wrapper component to override the default style guide. Every Alana UI component in the component hierarchy below the provider

Development

  • Use NativeTestApp project for development. It's a regular React Native mobile app with storybook. Use Android as we don't have development environment set up for iOS yet.
  • In order to manually test components using modals, add the component to App.tsx switch case, and add an enum value corresponding to your element. Use existing modal components as a reference.
  • If you need to work on a component that isn't using react-native-modal (or any kind of modal), please modify App.tsx so that modalViewType is None and make it so that switch case returns StorybookUIRoot instead of null in case None and in default case. However, components using modals will not work if StorybookUIRoot is present in the switch case even if it isn't actually returned, so in order to test them, it must be replaced with null.
  • It is important to use import * as React from 'react' imports instead of import React from 'react' because tsc renames the default imports to lowercase, which causes ReferenceError: Property 'React' doesn't exist errors because React ends up being renamed to react . If you need to use useEffect or useState or any other React export, it could be accessed as React.useEffect or React.useState and so on.
  • IMPORTANT Once your work is ready to be deployed modify NativeTestApp/moduleExports.ts file to export your newly created component. The component won't be included in the published package if you don't add it to moduleExports.ts.
  • Run build.sh script to prepare alana-react-native-ui-components package for publishing. Please commit resulting dist folder.
  • All dependencies used in NativeTestApp should be copied to package.json in alana-react-native-ui-components with one exception: if a package requires a native dependecy, it should be specified as a peer dependency rather than a regular one. As a rule of thumb, if a package requires running pod install to complete its setup, it should be specified as a peer dependecy in alana-react-native-ui-components/package.json
0.0.62

10 months ago

0.0.63

10 months ago

0.0.64

10 months ago

0.0.65

10 months ago

0.0.61

10 months ago

0.0.60

1 year ago

0.0.59

1 year ago

0.0.58

1 year ago

0.0.57

1 year ago

0.0.56

1 year ago

0.0.55

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.20

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago