Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6 update readme #10

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 35 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-native-neo-version

Check the version for react native applications
Notify users a new version of application is available and prompt them to upgrade.

## Installation

Expand All @@ -10,14 +10,45 @@ npm install react-native-neo-version

## Usage

```js
import { multiply } from 'react-native-neo-version';
```ts
import { useNeoVersionCheck } from 'react-native-neo-version';

// ...

const result = await multiply(3, 7);
export default function App() {
useNeoVersionCheck();

return (
<View style={styles.container}>
<Text>React Native Neo Version</Text>
</View>
);
}
```

You can change the behaviour by configuration

```ts
import { useNeoVersionCheck } from 'react-native-neo-version';

// ...
useNeoVersionCheck({
frequency: 20,
alertType: 'force',
title: 'alert title',
message: 'alert meessage',
});
```

## Screenshots

### iOS
- The left picture forces the user to update the app.
- The center picture gives the user the option to update the app.
- The right picture gives the user the option to skip the current update.

### Android

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
Expand All @@ -26,6 +57,3 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
195 changes: 0 additions & 195 deletions ios/Models/Country.swift

This file was deleted.

54 changes: 0 additions & 54 deletions ios/Models/Rules.swift

This file was deleted.

Loading