react-native-gallery-preview
Version:
<div> <img align="right" height="720" src="example.gif"> </div>
41 lines (40 loc) • 951 B
JavaScript
;
import React from "react";
import { SafeAreaView, StyleSheet } from "react-native";
import { ReText } from "./ReText";
import { jsx as _jsx } from "react/jsx-runtime";
export const DebugView = ({
values
}) => {
return /*#__PURE__*/_jsx(SafeAreaView, {
style: styles.container,
children: Object.keys(values).map(key => {
const value = values[key];
if (value === undefined) return null;
return /*#__PURE__*/_jsx(ReText, {
style: styles.text,
text: key,
value: value
}, `item-${key}`);
})
});
};
export const styles = StyleSheet.create({
container: {
position: "absolute",
right: 4,
bottom: 0,
padding: 2,
backgroundColor: "rgba(0, 0,0,0.5)",
pointerEvents: "none"
},
text: {
fontSize: 14,
lineHeight: 16,
textAlignVertical: "center",
height: 20,
padding: 0,
color: "white"
}
});
//# sourceMappingURL=DebugView.js.map