Skip to content

Commit c4b92d1

Browse files
committed
Hotfix
1 parent 68827a4 commit c4b92d1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ npm install react-native-sqlite-explorer
1414
import SQLiteExplorer from 'react-native-sqlite-explorer';
1515

1616
const DBExplorer = () => {
17-
// your baseName that you used in params:
18-
// SQLite.openDatabase({ name: baseName, location: 'default' }....
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
1919
const baseName = '<your_base_name_here>';
2020

2121
return <SQLiteExplorer params={{ name: baseName, location: 'default' }} />;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-sqlite-explorer",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "Explorer for react-native-sqlite-storage library database inside react native app",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

src/components/Table/TableModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const TableModal = ({
3535
useEffect(() => {
3636
setModel(initialModel);
3737
setErrors({});
38-
}, [modalType, initialModel]);
38+
}, [modalType]);
3939

4040
const getValidate = (model: TableSignatureValue): TableSignatureValue => {
4141
return tableData.fields.reduce((acc, field) => {

0 commit comments

Comments
 (0)