xref: /MusicFree/src/components/debug/index.tsx (revision 5589cdf32b2bb0f641e5ac7bf1f6152cd6b9b70e)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import VDebug from '@/lib/react-native-vdebug';
4import Config from '@/core/config';
5
6export default function Debug() {
7    const showDebug = Config.useConfig('setting.basic.debug.devLog');
8    return showDebug ? (
9        <View style={style.wrapper} pointerEvents="box-none">
10            <VDebug />
11        </View>
12    ) : null;
13}
14
15const style = StyleSheet.create({
16    wrapper: {
17        position: 'absolute',
18        top: 0,
19        left: 0,
20        right: 0,
21        bottom: 0,
22        width: '100%',
23        height: '100%',
24        zIndex: 999,
25    },
26});
27