Skip to content

Commit

Permalink
Merge pull request #6 from subrapak/docs/change-usage
Browse files Browse the repository at this point in the history
updated readme
  • Loading branch information
subrapak committed Jan 14, 2021
2 parents 19c872d + befee32 commit 5ec3bd5
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,38 @@ A customisable animated modal based autocomplete

## Installation

If you use npm:

```sh
npm install react-native-animated-autocomplete

```

## Usage
If you use yarn:

```js
import AnimatedAutocomplete from "react-native-animated-autocomplete";
```
yarn add react-native-animated-autocomplete
```

// ...
## Usage

const result = await AnimatedAutocomplete.multiply(3, 7);
```js
import * as React from 'react';

import { View } from 'react-native';
import AnimatedAutocomplete from 'react-native-animated-autocomplete';

export default function App() {
return (
<View>
<AnimatedAutocomplete
data={Array.from(Array(50).keys()).map(
(item: number) => `Custom ${item}`
)}
/>
</View>
);
}
```

## Contributing
Expand Down

0 comments on commit 5ec3bd5

Please sign in to comment.