A react native design system for the Atlas workout app
npm install atlas-design-system
Atlas Design System relies on a few peer dependencies that need to be present in your project. Install everything at once with npm:
``bash`
npm install atlas-design-system @react-native-community/datetimepicker informed moment react-native-reanimated react-native-safe-area-context react-native-vector-icons
—or with Yarn:
`bash`
yarn add atlas-design-system @react-native-community/datetimepicker informed moment react-native-reanimated react-native-safe-area-context react-native-vector-icons
After the packages are installed, make sure to install the iOS pods:
`bash`
npx pod-install ios
Using Expo? You can rely on expo install to ensure the correct versions:
`bash`
expo install atlas-design-system @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context react-native-vector-icons
> Note
> • React Native ≥ 0.64 is required.
> • Follow the React-Native-Reanimated installation guide and enable the Babel plugin if you haven't already.
`tsx
// 1. Import the ThemeContext and a theme. You can make your own or use the provided light theme ATLAS_LIGHT
import { ThemeContext, ATLAS_LIGHT } from "atlas-design-system";
export default function MyThemedApp() {
return (
// 2. Wrap your app with the ThemeContext.Provider and provide your theme
);
}
`
`tsx
import { Text } from "atlas-design-system";
import { View } from "react-native";
// 3. Use the components
export default function MyApp() {
return (
);
}
`
To run the example app, execute:
`bash``
cd example && yarn && yarn ios