Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: show button at bottom in quicknote ios

ammarahm-ed6cc1754d0112
diff --git a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
index b8057efe6..50831ece8 100644
--- a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
+++ b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
@@ -20,10 +20,9 @@
6510627527042893009661C3 /* OpenSans-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6552012F27019F7700A43C51 /* OpenSans-Regular.ttf */; };
6510627627042895009661C3 /* OpenSans-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6552012E27019F6E00A43C51 /* OpenSans-SemiBold.ttf */; };
6510627727042896009661C3 /* OpenSans-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6552012E27019F6E00A43C51 /* OpenSans-SemiBold.ttf */; };
+ 65139FA62716A2CA00D87727 /* Web.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 65139FA52716A2CA00D87727 /* Web.bundle */; };
+ 65139FA72716A2CA00D87727 /* Web.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 65139FA52716A2CA00D87727 /* Web.bundle */; };
6515C42F2580AA3000E83E39 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6515C42E2580AA2F00E83E39 /* StoreKit.framework */; };
- 654B3C47271417CE00B5081A /* Web.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 655FD779253AD31C001D807D /* Web.bundle */; };
- 655FD77A253AD31C001D807D /* Web.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 655FD779253AD31C001D807D /* Web.bundle */; };
- 656BFBC22696AC320063D1DD /* Plain.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 656BFBC12696AC320063D1DD /* Plain.bundle */; };
659BE46725E11A5100E05671 /* notesnook-text.png in Resources */ = {isa = PBXBuildFile; fileRef = 659BE46625E11A5100E05671 /* notesnook-text.png */; };
65AA857925E6DDEC00772A01 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65AA857825E6DDEC00772A01 /* WidgetKit.framework */; };
65AA857B25E6DDEC00772A01 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65AA857A25E6DDEC00772A01 /* SwiftUI.framework */; };
@@ -110,12 +109,11 @@
41D57E9831C724F59F18FBAE /* libPods-Notesnook-Add to Notes.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-Add to Notes.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47AE097A087A651BD60CAD7B /* Pods-Notesnook-Make Note.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-Make Note.release.xcconfig"; path = "Target Support Files/Pods-Notesnook-Make Note/Pods-Notesnook-Make Note.release.xcconfig"; sourceTree = "<group>"; };
4BD34AE0C0FD2416E48803B8 /* libPods-Notesnook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 65139FA52716A2CA00D87727 /* Web.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Web.bundle; path = ../html/Web.bundle; sourceTree = "<group>"; };
6515C42E2580AA2F00E83E39 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
6529D2B0257B4A2900B49BC3 /* NotesnookDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = NotesnookDebug.entitlements; path = Notesnook/NotesnookDebug.entitlements; sourceTree = "<group>"; };
6552012E27019F6E00A43C51 /* OpenSans-SemiBold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "OpenSans-SemiBold.ttf"; path = "../android/app/src/main/assets/fonts/OpenSans-SemiBold.ttf"; sourceTree = "<group>"; };
6552012F27019F7700A43C51 /* OpenSans-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "OpenSans-Regular.ttf"; path = "../android/app/src/main/assets/fonts/OpenSans-Regular.ttf"; sourceTree = "<group>"; };
- 655FD779253AD31C001D807D /* Web.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Web.bundle; sourceTree = "<group>"; };
- 656BFBC12696AC320063D1DD /* Plain.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Plain.bundle; path = ../../html/Plain.bundle; sourceTree = "<group>"; };
659BE46625E11A5100E05671 /* notesnook-text.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "notesnook-text.png"; path = "Notesnook/Images.xcassets/notesnook-text.png"; sourceTree = "<group>"; };
65A7F34F255689AD00699170 /* Notesnook.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = Notesnook.entitlements; path = Notesnook/Notesnook.entitlements; sourceTree = "<group>"; };
65AA857725E6DDEC00772A01 /* NotesWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NotesWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -223,7 +221,7 @@
13B07FAE1A68108700A75B9A /* Notesnook */ = {
isa = PBXGroup;
children = (
- 655FD779253AD31C001D807D /* Web.bundle */,
+ 65139FA52716A2CA00D87727 /* Web.bundle */,
659BE46625E11A5100E05671 /* notesnook-text.png */,
6529D2B0257B4A2900B49BC3 /* NotesnookDebug.entitlements */,
65A7F34F255689AD00699170 /* Notesnook.entitlements */,
@@ -271,7 +269,6 @@
65B5014125A672B200E2D264 /* Make Note */ = {
isa = PBXGroup;
children = (
- 656BFBC12696AC320063D1DD /* Plain.bundle */,
65B501AA25A6733400E2D264 /* Make Note.entitlements */,
65B5014325A672B200E2D264 /* ShareViewController.m */,
65B5014525A672B200E2D264 /* MainInterface.storyboard */,
@@ -537,8 +534,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 65139FA62716A2CA00D87727 /* Web.bundle in Resources */,
6510626F27042891009661C3 /* OpenSans-Regular.ttf in Resources */,
- 655FD77A253AD31C001D807D /* Web.bundle in Resources */,
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
6510627627042895009661C3 /* OpenSans-SemiBold.ttf in Resources */,
@@ -574,8 +571,7 @@
buildActionMask = 2147483647;
files = (
6510627727042896009661C3 /* OpenSans-SemiBold.ttf in Resources */,
- 656BFBC22696AC320063D1DD /* Plain.bundle in Resources */,
- 654B3C47271417CE00B5081A /* Web.bundle in Resources */,
+ 65139FA72716A2CA00D87727 /* Web.bundle in Resources */,
6510627527042893009661C3 /* OpenSans-Regular.ttf in Resources */,
65B5014725A672B200E2D264 /* MainInterface.storyboard in Resources */,
);
diff --git a/apps/mobile/share/index.js b/apps/mobile/share/index.js
index 791c7fc75..ff79b9f6b 100644
--- a/apps/mobile/share/index.js
+++ b/apps/mobile/share/index.js
@@ -382,11 +382,10 @@ const NotesnookShare = ({quicknote = false}) => {
justifyContent: quicknote ? 'center' : 'flex-end',
opacity: Platform.OS !== 'ios' ? opacity : 1
}}>
- {quicknote ? (
+ {quicknote && !showSearch ? (
<Button
type="action"
icon="close"
- color={colors.transGray}
iconColor={colors.pri}
onPress={() => {
if (showSearch) {
@@ -399,8 +398,8 @@ const NotesnookShare = ({quicknote = false}) => {
}}
style={{
position: 'absolute',
- right: 12,
- top: 12,
+ left: 12,
+ top: 6,
width: 50,
height: 50
}}
@@ -457,7 +456,8 @@ const NotesnookShare = ({quicknote = false}) => {
marginBottom: insets.top,
transform: [
{
- translateY: Platform.OS !== 'ios' ? translate : 0
+ translateY:
+ Platform.OS !== 'ios' ? translate : showSearch ? 1000 : 0
}
]
}}
@@ -517,23 +517,25 @@ const NotesnookShare = ({quicknote = false}) => {
style={{
width: '100%'
}}>
- <Button
- color={colors.accent}
- onPress={onPress}
- loading={loading || loadingIntent}
- icon="check"
- iconSize={25}
- type="action"
- loading={loading}
- iconColor={colors.light}
- style={{
- position: 'absolute',
- zIndex: 999,
- ...getElevation(10),
- right: 24,
- bottom: -35
- }}
- />
+ {!quicknote && (
+ <Button
+ color={colors.accent}
+ onPress={onPress}
+ loading={loading || loadingIntent}
+ icon="check"
+ iconSize={25}
+ type="action"
+ loading={loading}
+ iconColor={colors.light}
+ style={{
+ position: 'absolute',
+ zIndex: 999,
+ ...getElevation(10),
+ right: 24,
+ bottom: -35
+ }}
+ />
+ )}
<View
style={{
@@ -616,7 +618,6 @@ const NotesnookShare = ({quicknote = false}) => {
}}>
<Button
color={colors.shade}
- onPress={onPress}
icon={modes[mode].icon}
onPress={changeMode}
title={modes[mode].title}
@@ -630,7 +631,6 @@ const NotesnookShare = ({quicknote = false}) => {
{Clipboard.hasString() ? (
<Button
color={colors.nav}
- onPress={onPress}
icon="clipboard"
onPress={onPaste}
iconSize={18}
@@ -643,6 +643,25 @@ const NotesnookShare = ({quicknote = false}) => {
</View>
</View>
</View>
+
+ {quicknote && (
+ <Button
+ color={colors.accent}
+ onPress={onPress}
+ iconSize={18}
+ iconColor={colors.light}
+ textColor={colors.light}
+ title="Save note"
+ textStyle={{
+ marginLeft: 5,
+ fontFamily: 'OpenSans-SemiBold'
+ }}
+ style={{
+ marginTop: 10
+ }}
+ />
+ )}
+
<View
style={{
height: Platform.OS === 'ios' ? 60 : 40
@@ -736,8 +755,7 @@ const Button = ({
style={[
{
fontSize: 18,
- fontFamily: Platform.OS === 'android' ? 'Roboto-Medium' : null,
- fontWeight: Platform.OS === 'ios' ? '600' : null,
+ fontFamily: 'OpenSans-Regular',
color: textColor,
marginLeft: loading ? 10 : 0
},