MyDSTV GlueStack components for Multichoice Design System
npm install @multichoice/mydstv-gluestackMyDSTV GlueStack components for the Multichoice Design System. This package provides React Native components built with GlueStack UI for the MyDSTV brand.
``bash`
npm install @multichoice/mydstv-gluestack
This package requires the following peer dependencies:
`bash`
npm install react react-native @multichoice/core @gluestack-ui/core @gluestack-ui/themed @gluestack-ui/utils nativewind react-native-svg react-native-reanimated
`typescript
import { MyDSTVButton } from '@multichoice/mydstv-gluestack';
Click me
`
`typescript
import { MyDSTVInput } from '@multichoice/mydstv-gluestack';
variant="outline"
size="md"
/>
`
`typescript
import { MyDSTVCard } from '@multichoice/mydstv-gluestack';
`
`typescript
import { GluestackUIProvider } from '@multichoice/mydstv-gluestack';
function App() {
return (
{/ Your app content /}
);
}
`
1. Install the package and its dependencies
2. Wrap your app with the GluestackUIProvider
3. Import and use the components
`typescript
import React from 'react';
import { GluestackUIProvider } from '@multichoice/mydstv-gluestack';
export default function App() {
return (
{/ Your app components /}
);
}
`
This package uses NativeWind (Tailwind CSS for React Native) for styling. Make sure to configure NativeWind in your project:
1. Install NativeWind: npm install nativewindtailwind.config.js
2. Configure your
3. Set up the babel plugin
View all components in Storybook:
`bash``
npm run storybook
- React 18+
- React Native 0.72+
- Node.js 18+
MIT