File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
98npm 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
You can’t perform that action at this time.
0 commit comments