A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
create a simple PremiumTag
ammarahm-ed3b6cab63617a
diff --git a/apps/mobile/src/components/Premium/PremiumTag.js b/apps/mobile/src/components/Premium/PremiumTag.jsnew file mode 100644index 000000000..9ab924742--- /dev/null+++ b/apps/mobile/src/components/Premium/PremiumTag.js@@ -0,0 +1,31 @@+import React from 'react';+import {Text, View} from 'react-native';+import {WEIGHT} from '../../common/common';+import {useTracked} from '../../provider';++export const PremiumTag = ({pro}) => {+ const [state, dispatch] = useTracked();+ const {colors} = state;++ return !pro ? (+ <View+ style={{+ backgroundColor: colors.accent,+ paddingVertical: 5,+ alignItems: 'center',+ borderRadius: 5,+ marginRight: 20,+ elevation: 1,+ }}>+ <Text+ style={{+ color: 'white',+ paddingHorizontal: 4,+ fontSize: 10,+ fontFamily: WEIGHT.regular,+ }}>+ PRO+ </Text>+ </View>+ ) : null;+};