Skip to content

Commit 3fc2c23

Browse files
author
vlavrik
committed
fix readme
1 parent 927e5a2 commit 3fc2c23

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ Explorer for react-native-sqlite-storage library database inside react native ap
44

55
## Installation
66

7-
87
```sh
98
npm install react-native-sqlite-explorer
109
```
1110

12-
1311
## Usage
1412

15-
1613
```js
17-
import { multiply } from 'react-native-sqlite-explorer';
14+
import SQLiteExplorer from 'react-native-sqlite-explorer';
1815

19-
// ...
16+
const DBExplorer = () => {
17+
// initial baseName that you used in params or taken from openDatabase success callback:
18+
// SQLite.openDatabase({ name: baseName, location: 'default' }, DB => { DB.dbname <-- your baseName also here
19+
const baseName = '<your_base_name_here>';
2020

21-
const result = multiply(3, 7);
22-
```
21+
return <SQLiteExplorer params={{ name: baseName, location: 'default' }} />;
22+
};
2323

24+
export default DBExplorer;
25+
```
2426

25-
## Contributing
27+
## Tips
2628

27-
- [Development workflow](CONTRIBUTING.md#development-workflow)
28-
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
29-
- [Code of conduct](CODE_OF_CONDUCT.md)
29+
Temporarily only for Android
3030

3131
## License
3232

0 commit comments

Comments
 (0)