Gathering detailed insights and metrics for npac-design-lib-alma
Gathering detailed insights and metrics for npac-design-lib-alma
Gathering detailed insights and metrics for npac-design-lib-alma
Gathering detailed insights and metrics for npac-design-lib-alma
npm install npac-design-lib-alma
Typescript
Module System
Node Version
NPM Version
45.3
Supply Chain
61.6
Quality
77.3
Maintenance
50
Vulnerability
92.1
License
Total Downloads
895
Last Day
7
Last Week
16
Last Month
76
Last Year
895
Minified
Minified + Gzipped
Latest Version
1.1.23
Package Id
npac-design-lib-alma@1.1.23
Unpacked Size
696.50 kB
Size
115.91 kB
File Count
588
NPM Version
10.5.0
Node Version
20.12.0
Publised On
05 Dec 2024
Cumulative downloads
Total Downloads
Last day
250%
7
Compared to previous day
Last week
-27.3%
16
Compared to previous week
Last month
-47.9%
76
Compared to previous month
Last year
0%
895
Compared to previous year
6
4
54
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/npac-design-lib-alma
→ npac-design-lib-alma
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/dasa-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.