Skip to content

Commit 1d0e2b5

Browse files
committed
Fix loader position and edit/delete with pagination bug
1 parent e6088f0 commit 1d0e2b5

3 files changed

Lines changed: 262 additions & 244 deletions

File tree

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.11",
3+
"version": "0.1.12",
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/Loader/index.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect, useRef } from 'react';
1+
import React, { useEffect, useRef } from 'react';
22
import { Animated, Easing, View } from 'react-native';
33

44
const AnimateState = {
@@ -38,7 +38,16 @@ const Loader = () => {
3838
const stopAnimate = () => value.stopAnimation();
3939

4040
return (
41-
<View style={{ flex: 1 }}>
41+
<View
42+
style={{
43+
flex: 1,
44+
position: 'absolute',
45+
backgroundColor: '#ffffff60',
46+
width: '100%',
47+
height: '100%',
48+
zIndex: 20,
49+
}}
50+
>
4251
<Animated.Image
4352
source={require('../../assets/reload.png')}
4453
style={{
@@ -48,6 +57,7 @@ const Loader = () => {
4857
marginBottom: 'auto',
4958
marginLeft: 'auto',
5059
marginRight: 'auto',
60+
padding: 10,
5161
}}
5262
/>
5363
</View>

0 commit comments

Comments
 (0)