@b4xabhisheknpm/bikeshare-components
v1.0.0
Published
Shared UI components for Bikeshare app
Maintainers
Readme
@bikeshare/components
A collection of reusable React Native UI components for the Bikeshare app.
Installation
npm install @bikeshare/components
# or
yarn add @bikeshare/componentsComponents
AdSupportedModal
A modal component for displaying ad-supported content with premium upgrade options.
BackArrowIcon
A customizable back arrow icon component.
Button
A versatile button component with multiple variants and sizes.
ExitConfirmationModal
A modal for confirming app exit actions.
Usage
import { AdSupportedModal, Button, BackArrowIcon } from '@bikeshare/components';
// Use in your React Native components
<Button variant="primary" size="md" onPress={() => {}}>
Click me
</Button>
<AdSupportedModal
visible={true}
onClose={() => {}}
onGoPremium={() => {}}
onContinueWithAds={() => {}}
/>Requirements
- React Native >= 0.70.0
- React >= 18.0.0
- @expo/vector-icons ^15.0.0
- react-native-svg ^15.0.0
License
MIT
