UNPKG

@oxyhq/services

Version:

Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀

88 lines (87 loc) • 3.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _reactNative = require("react-native"); var _jsxRuntime = require("react/jsx-runtime"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const KarmaAboutScreen = ({ goBack, theme }) => { const isDarkTheme = theme === 'dark'; const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF'; const textColor = isDarkTheme ? '#FFFFFF' : '#000000'; const primaryColor = '#d169e5'; return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, { style: [styles.container, { backgroundColor }], children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: [styles.title, { color: textColor }], children: "About Karma" }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, { contentContainerStyle: styles.contentContainer, children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: [styles.paragraph, { color: textColor }], children: "Karma is a recognition of your positive actions in the Oxy Ecosystem. It cannot be sent or received directly, only earned by contributing to the community." }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: [styles.section, { color: primaryColor }], children: "How to Earn Karma" }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, { style: [styles.paragraph, { color: textColor }], children: ["\u2022 Helping other users", '\n', "\u2022 Reporting bugs", '\n', "\u2022 Contributing content", '\n', "\u2022 Participating in events", '\n', "\u2022 Other positive actions"] }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: [styles.section, { color: primaryColor }], children: "Why Karma?" }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { style: [styles.paragraph, { color: textColor }], children: "Karma unlocks special features and recognition in the Oxy Ecosystem. The more you contribute, the more you earn!" })] })] }); }; const styles = _reactNative.StyleSheet.create({ container: { flex: 1 }, title: { fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' // Use CSS font name directly for web : 'Phudu-Bold', // Use exact font name as registered with Font.loadAsync fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web fontSize: 54, margin: 24, marginBottom: 24 }, contentContainer: { padding: 24 }, section: { fontSize: 18, fontWeight: 'bold', marginTop: 24, marginBottom: 8 }, paragraph: { fontSize: 16, marginBottom: 12 } }); var _default = exports.default = KarmaAboutScreen; //# sourceMappingURL=KarmaAboutScreen.js.map