xref: /MusicFree/src/components/debug/index.tsx (revision ed067386d74ad02ad6f817b5bcbae7b589b9e81f)
1import React from "react";
2import { StyleSheet, View } from "react-native";
3import VDebug from "@/lib/react-native-vdebug";
4import Config from "@/core/config.ts";
5
6export default function Debug() {
7    const showDebug = Config.useConfigValue('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