@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
127 lines (125 loc) • 3.9 kB
JavaScript
"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 KarmaRewardsScreen = ({
goBack,
theme
}) => {
const isDarkTheme = theme === 'dark';
const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF';
const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
const primaryColor = '#d169e5';
// Placeholder: In a real app, fetch rewards from API
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
style: [styles.container, {
backgroundColor
}],
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.title, {
color: textColor
}],
children: "Karma Rewards"
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
contentContainerStyle: styles.contentContainer,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.paragraph, {
color: textColor
}],
children: "Unlock special features and recognition by earning karma!"
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
style: styles.rewardBox,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardTitle, {
color: primaryColor
}],
children: "\uD83C\uDF89 Early Access"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardDesc, {
color: textColor
}],
children: "Get early access to new features with 100+ karma."
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
style: styles.rewardBox,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardTitle, {
color: primaryColor
}],
children: "\uD83C\uDFC5 Community Badge"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardDesc, {
color: textColor
}],
children: "Earn a special badge for 500+ karma."
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
style: styles.rewardBox,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardTitle, {
color: primaryColor
}],
children: "\uD83C\uDF1F Featured Member"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.rewardDesc, {
color: textColor
}],
children: "Be featured in the community for 1000+ karma."
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
style: [styles.paragraph, {
color: textColor,
marginTop: 24
}],
children: "More rewards coming soon!"
})]
})]
});
};
const styles = _reactNative.StyleSheet.create({
container: {
flex: 1
},
title: {
fontSize: 24,
fontWeight: 'bold',
margin: 24,
textAlign: 'center'
},
contentContainer: {
padding: 24
},
rewardBox: {
backgroundColor: '#f7eaff',
borderRadius: 16,
padding: 18,
marginBottom: 18,
shadowColor: '#000',
shadowOpacity: 0.04,
shadowOffset: {
width: 0,
height: 1
},
shadowRadius: 4,
elevation: 1
},
rewardTitle: {
fontSize: 18,
fontWeight: 'bold',
marginBottom: 6
},
rewardDesc: {
fontSize: 15
},
paragraph: {
fontSize: 16,
marginBottom: 12
}
});
var _default = exports.default = KarmaRewardsScreen;
//# sourceMappingURL=KarmaRewardsScreen.js.map