# react-native-subscription-expired

> test

Latest version **0.1.3** (published 2023-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-subscription-expired
pnpm add react-native-subscription-expired
yarn add react-native-subscription-expired
bun add react-native-subscription-expired
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-01-15 |
| First published | 2023-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 234.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | pawanpyakurel |
| Maintainers | pawanpyakurel |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-subscription-expired
- Repository: https://github.com/pawanpyakurel/react-native-subscription-expired
- Homepage: https://github.com/pawanpyakurel/react-native-subscription-expired#readme
- Issues: https://github.com/pawanpyakurel/react-native-subscription-expired/issues
- npm.io page: https://npm.io/package/react-native-subscription-expired

## Recent versions

- 0.1.3 (latest) — 2023-01-15
- 0.1.2 — 2023-01-15
- 0.1.1 — 2023-01-15
- 0.1.0 — 2023-01-15

## README

react-native-subscription-expired
=================================

<img src="https://github.com/pawanpyakurel/react-native-subscription-expired/blob/main/resources/screenshoots/defaultView.png" width="250" height="500" />

A simple and easy to use subscription expired dialog for React Native apps.

Installation
------------

You can install the package via npm:

```
npm install react-native-subscription-expired

```

or via yarn:

```
yarn add react-native-subscription-expired

```

Usage
-----
### Wrap your project with `SubscriptionExpired` at the top
```
import React from 'react';
import {RootNavigation} from './navigation/rootNavigation';
import {NavigationContainer} from '@react-navigation/native';
import {navigationRef} from './navigation/navigationService';

// subscription-expired import
import {SubscriptionExpiredView} from 'react-native-subscription-expired';

const App = () => {

  //app will be validate upto
  const subscriptionValidatonDate = new Date('2023-03-01');

  return (
    <SubscriptionExpiredView validTill={subscriptionValidatonDate}> //subscription-expired wrapping
    
    // your rest code here
      <GestureHandlerRootView style={{flex: 1}}>
        <NavigationContainer ref={navigationRef}>
           <RootNavigation />
         </NavigationContainer>
      </GestureHandlerRootView>
    </SubscriptionExpiredView>
  );
};

export default App;

```

Props
-----

| Property  | Type     | #Option    | Default Value |Description |
| :---:     | :---:    | :---:     |:---:          |    :---:   |
| validTill | Date     | Required  | undefined     |            |
| Heading | JSX     |   Optional  |                |



Example
-------

You can find an example of how to use the package in the [example](https://github.com/pawanpyakurel/react-native-subscription-expired/tree/master/example) folder.

Support
-------

Please open an issue if you find any bug or have any feature request.

Contribution
------------

Please feel free to open a pull request if you want to contribute to this project.

Licence
-------

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/pawanpyakurel/react-native-subscription-expired/blob/master/LICENSE) file for details.

---
_Source: https://npm.io/package/react-native-subscription-expired · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
