Gathering detailed insights and metrics for alma-design-system-react-native
Gathering detailed insights and metrics for alma-design-system-react-native
Gathering detailed insights and metrics for alma-design-system-react-native
Gathering detailed insights and metrics for alma-design-system-react-native
npm install alma-design-system-react-native
Typescript
Module System
Node Version
NPM Version
45.5
Supply Chain
61.6
Quality
66.3
Maintenance
50
Vulnerability
92.1
License
Total Downloads
14,713
Last Day
5
Last Week
15
Last Month
65
Last Year
1,212
Minified
Minified + Gzipped
Latest Version
1.1.12
Package Id
alma-design-system-react-native@1.1.12
Unpacked Size
696.91 kB
Size
115.20 kB
File Count
588
NPM Version
8.5.5
Node Version
16.15.0
Publised On
25 Aug 2023
Cumulative downloads
Total Downloads
Last day
400%
5
Compared to previous day
Last week
-62.5%
15
Compared to previous week
Last month
441.7%
65
Compared to previous month
Last year
-83.4%
1,212
Compared to previous year
6
4
49
Alma React Native is the official React Native lib composed with Emotion from Dasa. Access here all documentation.
See all components in our Storybook.
yarn add @dasa-nexus/alma-design-system-react-native
There are required dependencies to use this package that you should have installed on your project:
yarn add react-native-safe-area-context
yarn add react-native-svg
In order to use the Text
components (Heading
, Subtitle
, Body
, etc) in your RN app, you will need to place the DasaSans
font in your project, and load it before the render of your app. If you ar using Expo, you can do something like this:
import { useFonts } from 'expo-font';
import AppLoading from 'expo-app-loading';
...
const [fontsLoaded] = useFonts({
'DasaSans-Bold': require('./[PATH_TO_YOUR_FONTS_FOLDER]]/DasaSans-Bold.otf'),
'DasaSans-BoldItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-BoldItalic.otf'),
'DasaSans-Italic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Italic.otf'),
'DasaSans-Light': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Light.otf'),
'DasaSans-LightItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-LightItalic.otf'),
'DasaSans-Medium': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Medium.otf'),
'DasaSans-MediumItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-MediumItalic.otf'),
'DasaSans-Regular': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Regular.otf'),
'DasaSans-Semibold': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-Semibold.otf'),
'DasaSans-SemiboldItalic': require('./[PATH_TO_YOUR_FONTS_FOLDER]/DasaSans-SemiboldItalic.otf'),
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
return <YourApp />;
}
If you are developing an exported RN project (not using expo), you will have to react-native link
your fonts (please refer to some documentation on how to do this)
dev branch
and give a git pull
yarn build
lib
chore: updating lib files
yarn release:patch
or yarn release:minor
or yarn release:major
according to the necessity (Semantic Versioning 2.0.0)@dasa-nexus/alma-design-system-react-native
→ alma-design-system-react-native
package.json
"publishConfig": {
"registry": "https://nexus.dasaexp.io/repository/alma-design-system-mobile/"
},
.npmrc
file token (the token can be found in the file history)
//nexus.dasaexp.io/repository/alma-design-system-mobile/:_authToken=NpmToken.*****************
//registry.npmjs.org/:_authToken=npm_*****************
npm publish
IMPORTANT: The changes made in the second step must not be committed, but discarded after publication in the public NPM
No vulnerabilities found.
No security vulnerabilities found.