Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Henus321 committed Aug 23, 2024
1 parent 68827a4 commit c4b92d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ npm install react-native-sqlite-explorer
import SQLiteExplorer from 'react-native-sqlite-explorer';

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

return <SQLiteExplorer params={{ name: baseName, location: 'default' }} />;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-sqlite-explorer",
"version": "0.1.5",
"version": "0.1.6",
"description": "Explorer for react-native-sqlite-storage library database inside react native app",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/TableModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const TableModal = ({
useEffect(() => {
setModel(initialModel);
setErrors({});
}, [modalType, initialModel]);
}, [modalType]);

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

0 comments on commit c4b92d1

Please sign in to comment.