diff --git a/.circleci/config.yml b/.circleci/config.yml
index 95df341..74ed27a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -66,18 +66,3 @@ workflows:
platform: "x64"
requires:
- install
- build-ARM64:
- jobs:
- - install
- - build-Application-Configuration-Platform:
- name: build-Application-Release-ARM
- configuration: "release"
- platform: "ARM"
- requires:
- - install
- - build-Application-Configuration-Platform:
- name: build-Application-Debug-ARM
- configuration: "debug"
- platform: "ARM"
- requires:
- - install
diff --git a/index.js b/index.js
index 44dd6a9..1508f83 100644
--- a/index.js
+++ b/index.js
@@ -5,8 +5,6 @@
import {AppRegistry} from 'react-native';
import NotesMainPanel from './src/NotesMainPanel';
-import UserAccountPanel from './src/UserAccountPanel';
-import ApplicationSettingsPanel from './src/ApplicationSettingsPanel';
import NoteWidgetDetailsPanel from './src/NoteWidgetDetailsPanel';
import CreateNotePanel from './src/CreateNotePanel';
import ToDoListPanel from './src/ToDoListPanel';
diff --git a/src/ApplicationSettingsPanel.js b/src/ApplicationSettingsPanel.js
deleted file mode 100644
index f2e932f..0000000
--- a/src/ApplicationSettingsPanel.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * @format
- * @flow strict-local
- */
-import React from 'react';
-import {
- AppRegistry,
- StyleSheet,
- Text,
- TouchableHighlight,
- View,
-} from 'react-native';
-
-
-class ApplicationSettingsPanel extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- shouldExpand: true
- };
- }
-
- OnResizeButtonPressed = () => {
- this.setState( (state) => ({ shouldExpand: state.shouldExpand ? false : true}));
- };
-
- render() {
- return(
-
-
-
- Resize
-
-
-
- LeftOptionsPanel
-
-
- );
- }
-};
-
-
-const styles = StyleSheet.create({
- panelModeButton: {
- margin: 10,
- backgroundColor: "grey",
- },
- panelContent: {
- flex: 1,
- flexDirection: "column",
- },
- panel: {
- width: "20%",
- borderWidth: 1,
- borderColor: "black",
- },
- panelShrinked: {
- width: 50,
- borderWidth: 1,
- borderColor: "black",
- }
-});
-
-
-AppRegistry.registerComponent("ApplicationSettingsPanel", () => ApplicationSettingsPanel);
-
-export default ApplicationSettingsPanel;
diff --git a/src/CreateNotePanel.js b/src/CreateNotePanel.js
index d4364e0..0593ee8 100644
--- a/src/CreateNotePanel.js
+++ b/src/CreateNotePanel.js
@@ -11,13 +11,10 @@ import {
StyleSheet,
TextInput,
View,
- Dimensions,
Button,
} from 'react-native';
-const window = Dimensions.get("window");
-
class CreateNotePanel extends React.Component {
constructor(props) {
@@ -25,40 +22,15 @@ class CreateNotePanel extends React.Component {
this.state = {
title: "",
message: "",
- windowHeight: window.height
}
};
- componentDidMount() {
- Dimensions.addEventListener("change", this.windowDimensionOnChange);
- };
-
- componentWillUnmount() {
- Dimensions.removeEventListener("change", this.windowDimensionOnChange);
- };
-
- windowDimensionOnChange = ({window, screen}) => {
- this.setState({windowWidth: window.width, windowHeight: window.height});
- };
-
- calculateTitleFormWidth = () => {
- return Dimensions.get("window").width - 100;
- };
-
- calculateMessageFormWidth = () => {
- return Dimensions.get("window").width - 100;
- };
-
titleOnChange = (text) => {
this.setState({title: text});
};
messageOnChange = (text) => {
this.setState({message: text});
- }
-
- calculateMessagePanelHeight = () => {
- return Dimensions.get("window").height - styles.titlePanel.height - 100;
};
cancelButtonPressed = () => {
@@ -66,11 +38,11 @@ class CreateNotePanel extends React.Component {
Alert.alert("Are you sure?", "It looks like you still have unsaved changes, which are going to be lost.",
[
{
- text: "No!",
+ text: "Cancel",
style: "cancel"
},
{
- text: "Yes, cancel!",
+ text: "Discard",
onPress: () => NativeModules.NoteWidgetClickHandler.goToNotesScreen()
}
])
@@ -90,7 +62,7 @@ class CreateNotePanel extends React.Component {
return (
-
-
-
@@ -127,17 +99,19 @@ const styles = StyleSheet.create({
height: 60,
},
titleBox: {
- height: 35,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomWidth: 1,
borderTopWidth: 0,
+ width: "90%",
borderColor: "#D0D0D0",
- color: "blue"
+ fontWeight: "bold"
},
noteMessageBox: {
borderWidth: 0.2,
margin: 10,
+ width: "90%",
+ height: "85%",
borderColor: "#D0D0D0",
alignContent: "center",
textAlignVertical: "center",
@@ -146,8 +120,8 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: "row",
justifyContent: "space-around",
- width: 500,
- height: 40,
+ width: "60%",
+ maxHeight: 35,
}
});
diff --git a/src/NoteWidgetDetailsPanel.js b/src/NoteWidgetDetailsPanel.js
index 06fa5f5..9c408b7 100644
--- a/src/NoteWidgetDetailsPanel.js
+++ b/src/NoteWidgetDetailsPanel.js
@@ -11,13 +11,10 @@ import {
StyleSheet,
TextInput,
View,
- Dimensions,
Button,
} from 'react-native';
-const window = Dimensions.get("window");
-
class NoteWidgetDetailsPanel extends React.Component {
constructor(props) {
super(props);
@@ -26,7 +23,6 @@ class NoteWidgetDetailsPanel extends React.Component {
title: "",
message: "",
isEditing: false,
- windowHeight: window.height
}
};
@@ -38,24 +34,6 @@ class NoteWidgetDetailsPanel extends React.Component {
this.getNoteMessage();
})
.catch(error => {Alert.alert("ERROR!", `Could not find the opened note\n${error}`)});
-
- Dimensions.addEventListener("change", this.windowDimensionOnChange);
- };
-
- componentWillUnmount() {
- Dimensions.removeEventListener("change", this.windowDimensionOnChange);
- };
-
- windowDimensionOnChange = ({window, screen}) => {
- this.setState({windowWidth: window.width, windowHeight: window.height});
- };
-
- calculateTitleFormWidth = () => {
- return Dimensions.get("window").width - 100;
- };
-
- calculateMessageFormWidth = () => {
- return Dimensions.get("window").width - 100;
};
titleOnChange = (text) => {
@@ -64,10 +42,6 @@ class NoteWidgetDetailsPanel extends React.Component {
messageOnChange = (text) => {
this.setState({message: text});
- }
-
- calculateMessagePanelHeight = () => {
- return Dimensions.get("window").height - styles.titlePanel.height - 100;
};
getNoteTitle = () => {
@@ -87,11 +61,11 @@ class NoteWidgetDetailsPanel extends React.Component {
Alert.alert("Are you sure?", "It looks like you still have unsaved changes, which are going to be lost.",
[
{
- text: "No!",
+ text: "Cancel",
style: "cancel"
},
{
- text: "Yes, cancel!",
+ text: "Discard",
onPress: () => NativeModules.NoteWidgetClickHandler.goToNotesScreen()
}
])
@@ -114,10 +88,10 @@ class NoteWidgetDetailsPanel extends React.Component {
Alert.alert("Are you sure?", "Deleting the note cannot be reversed...",
[
{
- text: "No!",
+ text: "Cancel",
style: "cancel"
},
- { text: "Yes, delete!", onPress: () => {
+ { text: "Delete", onPress: () => {
NativeModules.Database.deleteNote(this.state.id);
NativeModules.NoteWidgetClickHandler.goToNotesScreen();
}}
@@ -129,7 +103,7 @@ class NoteWidgetDetailsPanel extends React.Component {
return (
-
-
-
+
@@ -167,21 +141,20 @@ const styles = StyleSheet.create({
alignItems: "center",
margin: 30
},
- titlePanel: {
- height: 60,
- },
titleBox: {
- height: 35,
borderLeftWidth: 0,
borderRightWidth: 0,
borderBottomWidth: 1,
borderTopWidth: 0,
+ width: "90%",
borderColor: "#D0D0D0",
- color: "blue"
+ fontWeight: "bold"
},
noteMessageBox: {
borderWidth: 0.2,
margin: 10,
+ width: "90%",
+ height: "85%",
borderColor: "#D0D0D0",
alignContent: "center",
textAlignVertical: "center",
@@ -190,8 +163,8 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: "row",
justifyContent: "space-around",
- width: 500,
- height: 40,
+ width: "60%",
+ maxHeight: 35,
}
});
diff --git a/src/NotesMainPanel.js b/src/NotesMainPanel.js
index e8de84f..dd1fa60 100644
--- a/src/NotesMainPanel.js
+++ b/src/NotesMainPanel.js
@@ -11,7 +11,6 @@ import {
FlatList,
NativeModules,
StyleSheet,
- Text,
View,
} from 'react-native';
import NoteWidget from './Widgets/NoteWidget';
@@ -50,23 +49,18 @@ class NotesMainPanel extends React.Component {
Dimensions.removeEventListener("change", this.onChange);
};
- createNotesKeys = (numberOfNotes) => {
- let allNotesKeys = [];
- for(id = 0; id < numberOfNotes; id++) {
- const nextObject = {key: id};
- allNotesKeys.push(nextObject);
- }
- this.setState({notes: allNotesKeys});
+ createNotesKeys = (notesIDs) => {
+ this.setState({notes: notesIDs});
};
getDataFromDatabase = () => {
- NativeModules.Database.getNumberOfNotes()
+ NativeModules.Database.getAllNotesIDs()
.then(result => this.createNotesKeys(result))
.catch(error => Alert.alert("ERROR!", `Result: ${error}`));
};
renderNote = notes => {
- return
+ return
};
render() {
diff --git a/src/ToDoListPanel.js b/src/ToDoListPanel.js
index 12f7474..9e8bb2e 100644
--- a/src/ToDoListPanel.js
+++ b/src/ToDoListPanel.js
@@ -82,7 +82,7 @@ const styles = StyleSheet.create({
flexDirection: "column"
},
flatListPanel: {
- height: "80%",
+ height: "75%",
margin: 30,
},
newTaskPanel: {
@@ -91,7 +91,7 @@ const styles = StyleSheet.create({
marginTop: 10,
borderWidth: 1,
borderColor: "white",
- maxHeight: 100,
+ maxHeight: 90,
},
noteMessageBox: {
borderWidth: 0.2,
@@ -104,6 +104,7 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: "row",
justifyContent: "space-around",
+ height: 10
},
});
diff --git a/src/UserAccountPanel.js b/src/UserAccountPanel.js
deleted file mode 100644
index 3587688..0000000
--- a/src/UserAccountPanel.js
+++ /dev/null
@@ -1,159 +0,0 @@
-/**
- * @format
- * @flow strict-local
- */
-
-import React from 'react';
-import {
- AppRegistry,
- StyleSheet,
- View,
- NativeModules,
- Alert,
- Image,
- TextInput,
- Button,
- Text,
-} from 'react-native';
-
-
-class UserAccountPanel extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- userName: "",
- userEmail: "",
- isEditing: false,
- }
- };
-
- componentDidMount() {
- NativeModules.User.getName()
- .then(result => this.setState({userName: result}))
- .catch(error => Alert.alert("ERROR!", `${error}`));
- NativeModules.User.getEmail()
- .then(result => this.setState({userEmail: result}))
- .catch(error => Alert.alert("ERROR!", `${error}`));
- };
-
- userNameOnChange = (text) => {
- this.setState({userName: text});
- };
-
- userEmailOnChange = (text) => {
- this.setState({userEmail: text});
- }
-
-
- quitButtonPressed = () => {
- if(this.state.isEditing) {
- Alert.alert("Are you sure?", "It looks like you still have unsaved changes, which are going to be lost.",
- [
- {
- text: "No!",
- style: "cancel"
- },
- {
- text: "Yes, quit!",
- onPress: () => NativeModules.NoteWidgetClickHandler.goToNotesScreen()
- }
- ])
- }
- else {
- NativeModules.NoteWidgetClickHandler.goToNotesScreen();
- }
- };
-
- saveButtonPressed = () => {
- NativeModules.User.setEmail(this.state.userEmail);
- NativeModules.User.setName(this.state.userName);
- this.setState({isEditing: false});
- }
-
- editButtonPressed = () => {
- this.setState({isEditing: true});
- };
-
-
- render() {
- return (
-
-
-
-
-
- User's name:
-
-
- User's email:
-
-
-
-
-
-
-
-
-
-
-
- );
- }
-};
-
-
-const styles = StyleSheet.create({
- page: {
- margin: 40,
- },
- mainPanel: {
- flex: 0,
- flexDirection: "row",
- height: "85%",
- margin: 20
- },
- avatarLeftPanel: {
- width: 300,
- },
- detailsRightPanel: {
- width: "80%"
- },
- avatarImage: {
- width: 200,
- height: 200,
- borderRadius: 200 / 2,
- borderWidth: 1,
- },
- userEmailBox: {
- width: "80%",
- margin: 30
- },
- userNameBox: {
- width: "80%",
- margin: 30
- },
- actionsPanel: {
- flex: 0,
- flexDirection: "row",
- justifyContent: "space-evenly",
- height: "10%"
- },
- avatarButton: {
- width: 110,
- margin: 40,
- marginHorizontal: 45,
- }
-});
-
-
-AppRegistry.registerComponent("UserAccountPanel", () => UserAccountPanel);
-
-export default UserAccountPanel;
diff --git a/src/Widgets/NoteWidget.js b/src/Widgets/NoteWidget.js
index ce5d633..413d993 100644
--- a/src/Widgets/NoteWidget.js
+++ b/src/Widgets/NoteWidget.js
@@ -3,7 +3,7 @@
* @flow strict-local
*/
-import React, {useState, useEffect, useRef} from 'react';
+import React from 'react';
import {
AppRegistry,
StyleSheet,
@@ -11,42 +11,16 @@ import {
TouchableHighlight,
View,
NativeModules,
- Alert,
} from 'react-native';
export default function NoteWidget(props){
- const {width, ID} = props;
-
- const [title, setTitle] = useState("");
- const [shortMessage, setShortMessage] = useState("");
- const isMounted = useRef(null);
-
- useEffect(() => {
- isMounted.current = true;
- getNoteTitle();
- getNoteShortMessage();
- return () => {
- isMounted.current = false;
- }
- }, []);
+ const {width, ID, title, shortMessage} = props;
const enterNote = () => {
NativeModules.NoteWidgetClickHandler.openWidget(ID);
};
- const getNoteTitle = () => {
- NativeModules.Database.getNoteTitle(ID)
- .then(result => {isMounted && setTitle(result)})
- .catch(error => Alert.alert("ERROR!", `${error}`));
- };
-
- const getNoteShortMessage = () => {
- NativeModules.Database.getNoteShortPost(ID)
- .then(result => {isMounted && setShortMessage(result)})
- .catch(error => Alert.alert("ERROR!", `${error}`));
- };
-
return(
@@ -90,10 +64,9 @@ const styles = StyleSheet.create({
margin: 10
},
noteTitleText: {
- color: "#6c47ff",
+ fontWeight: "bold",
fontFamily: "Georgia",
fontSize: 12,
- fontWeight: "100",
},
message: {
margin: 10,
diff --git a/windows/ReactNativeNotes/ApplicationSettingsPage.cpp b/windows/ReactNativeNotes/ApplicationSettingsPage.cpp
deleted file mode 100644
index 131ac28..0000000
--- a/windows/ReactNativeNotes/ApplicationSettingsPage.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "pch.h"
-#include "ApplicationSettingsPage.h"
-#include "ApplicationSettingsPage.g.cpp"
-
-#include "App.h"
-
-
-namespace winrt::ReactNativeNotes::implementation
-{
- ApplicationSettingsPage::ApplicationSettingsPage()
- {
- InitializeComponent();
- auto app = Windows::UI::Xaml::Application::Current().as();
- ReactRootView().ReactNativeHost( app->Host() );
- }
-}
diff --git a/windows/ReactNativeNotes/ApplicationSettingsPage.h b/windows/ReactNativeNotes/ApplicationSettingsPage.h
deleted file mode 100644
index 75bcf96..0000000
--- a/windows/ReactNativeNotes/ApplicationSettingsPage.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include "ApplicationSettingsPage.g.h"
-
-namespace winrt::ReactNativeNotes::implementation
-{
- class ApplicationSettingsPage : public ApplicationSettingsPageT
- {
- public:
- ApplicationSettingsPage();
- };
-}
-
-namespace winrt::ReactNativeNotes::factory_implementation
-{
- class ApplicationSettingsPage : public ApplicationSettingsPageT
- {
- };
-}
diff --git a/windows/ReactNativeNotes/ApplicationSettingsPage.idl b/windows/ReactNativeNotes/ApplicationSettingsPage.idl
deleted file mode 100644
index 6459091..0000000
--- a/windows/ReactNativeNotes/ApplicationSettingsPage.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace ReactNativeNotes
-{
- [default_interface]
- runtimeclass ApplicationSettingsPage : Windows.UI.Xaml.Controls.Page
- {
- ApplicationSettingsPage();
- }
-}
diff --git a/windows/ReactNativeNotes/ApplicationSettingsPage.xaml b/windows/ReactNativeNotes/ApplicationSettingsPage.xaml
deleted file mode 100644
index f444a6f..0000000
--- a/windows/ReactNativeNotes/ApplicationSettingsPage.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/windows/ReactNativeNotes/CreateNotePage.xaml b/windows/ReactNativeNotes/CreateNotePage.xaml
index e85ef86..989f8f5 100644
--- a/windows/ReactNativeNotes/CreateNotePage.xaml
+++ b/windows/ReactNativeNotes/CreateNotePage.xaml
@@ -6,16 +6,7 @@
xmlns:react="using:Microsoft.ReactNative"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
-
-
-
-
-
-
-
-
-
-
-
+ mc:Ignorable="d"
+ Background="Transparent">
+
diff --git a/windows/ReactNativeNotes/MainPage.xaml b/windows/ReactNativeNotes/MainPage.xaml
index 272e066..769e340 100644
--- a/windows/ReactNativeNotes/MainPage.xaml
+++ b/windows/ReactNativeNotes/MainPage.xaml
@@ -10,37 +10,55 @@
Background="Transparent"
mc:Ignorable="d">
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+ {callstack}
+
+
diff --git a/windows/ReactNativeNotes/NativeModules/DatabaseHandler.hpp b/windows/ReactNativeNotes/NativeModules/DatabaseHandler.hpp
index e0915c0..c53fb82 100644
--- a/windows/ReactNativeNotes/NativeModules/DatabaseHandler.hpp
+++ b/windows/ReactNativeNotes/NativeModules/DatabaseHandler.hpp
@@ -66,15 +66,15 @@ namespace winrt::ReactNativeNotes::implementation
}
REACT_METHOD( GetAllNotesIDs, L"getAllNotesIDs" );
- Microsoft::ReactNative::JSValue GetAllNotesIDs() noexcept
+ void GetAllNotesIDs( React::ReactPromise&& result ) noexcept
{
Microsoft::ReactNative::JSValueArray keyArray;
for( unsigned int i = 0; i < data->Size(); ++i )
{
if( data->Exists( i ) )
- keyArray.push_back( Microsoft::ReactNative::JSValueObject{ { "key", i } } );
+ keyArray.push_back( Microsoft::ReactNative::JSValueObject{ { "key", i }, { "title", data->Read( i ).Title() }, { "shortMessage", data->Read( i ).ShortPost() } } );
}
- return Microsoft::ReactNative::JSValue( std::move( keyArray ) );
+ result.Resolve( Microsoft::ReactNative::JSValue( std::move( keyArray ) ) );
}
private:
diff --git a/windows/ReactNativeNotes/NativeModules/Repository/Repository.cpp b/windows/ReactNativeNotes/NativeModules/Repository/Repository.cpp
index 35fb347..7a319de 100644
--- a/windows/ReactNativeNotes/NativeModules/Repository/Repository.cpp
+++ b/windows/ReactNativeNotes/NativeModules/Repository/Repository.cpp
@@ -6,7 +6,7 @@ namespace winrt::ReactNativeNotes::implementation
{
void Repository::Create( NoteModel& note ) noexcept
{
- note.ID( static_cast(notes.size() + 1) );
+ note.ID( static_cast(notes.size()) );
notes.push_back( note );
}
diff --git a/windows/ReactNativeNotes/NativeModules/UserAccount/FilePicker.hpp b/windows/ReactNativeNotes/NativeModules/UserAccount/FilePicker.hpp
deleted file mode 100644
index 66111bd..0000000
--- a/windows/ReactNativeNotes/NativeModules/UserAccount/FilePicker.hpp
+++ /dev/null
@@ -1,53 +0,0 @@
-#pragma once
-
-#include "pch.h"
-#include "NativeModules.h"
-#include
-#include
-
-
-namespace ReactNativeNotes
-{
- REACT_MODULE( FilePicker );
- struct FilePicker
- {
- REACT_INIT( Initialize );
- void Initialize( const winrt::Microsoft::ReactNative::ReactContext& reactContext ) noexcept
- {
- context = reactContext;
- }
-
- REACT_METHOD( OpenFile, L"openFile" );
- void OpenFile( React::ReactPromise result ) noexcept
- {
- context.UIDispatcher().Post( [this, result{ std::move( result ) }]()->void { LaunchPicker( result ); } );
- }
-
- winrt::fire_and_forget LaunchPicker( React::ReactPromise result ) noexcept
- {
- winrt::Windows::Storage::Pickers::FileOpenPicker openPicker;
- openPicker.ViewMode( winrt::Windows::Storage::Pickers::PickerViewMode::Thumbnail );
- openPicker.FileTypeFilter().ReplaceAll( { L".jpg", L".jpeg", L".png" } );
-
- try
- {
- winrt::Windows::Storage::StorageFile file = co_await openPicker.PickSingleFileAsync();
- if( file != nullptr )
- {
- std::string s = winrt::to_string( file.Path() );
- result.Resolve( React::JSValue( s ) );
- }
- else
- {
- result.Reject( L"Couldn't load the selected file!" );
- }
- }
- catch( const winrt::hresult_error& e )
- {
- result.Reject( e.message().c_str() );
- }
- }
-
- winrt::Microsoft::ReactNative::ReactContext context;
- };
-}
diff --git a/windows/ReactNativeNotes/NativeModules/UserAccount/User.hpp b/windows/ReactNativeNotes/NativeModules/UserAccount/User.hpp
deleted file mode 100644
index cba61b0..0000000
--- a/windows/ReactNativeNotes/NativeModules/UserAccount/User.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-#include "pch.h"
-#include "NativeModules.h"
-
-
-namespace ReactNativeNotes
-{
- REACT_MODULE( User );
- struct User
- {
- public:
- REACT_METHOD( GetName, L"getName" );
- void GetName( React::ReactPromise result ) noexcept
- {
- result.Resolve( React::JSValue( name ) );
- }
-
- REACT_METHOD( SetName, L"setName" );
- void SetName( const std::string& name ) noexcept
- {
- this->name = name;
- }
-
- REACT_METHOD( GetEmail, L"getEmail" );
- void GetEmail( React::ReactPromise result ) noexcept
- {
- result.Resolve( React::JSValue( email ) );
- }
-
- REACT_METHOD( SetEmail, L"setEmail" );
- void SetEmail( const std::string& email ) noexcept
- {
- this->email = email;
- }
-
- private:
- std::string name;
- std::string email;
- };
-}
\ No newline at end of file
diff --git a/windows/ReactNativeNotes/NoteWidgetDetailsPage.xaml b/windows/ReactNativeNotes/NoteWidgetDetailsPage.xaml
index 1b4a67f..63f81bf 100644
--- a/windows/ReactNativeNotes/NoteWidgetDetailsPage.xaml
+++ b/windows/ReactNativeNotes/NoteWidgetDetailsPage.xaml
@@ -11,12 +11,12 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/windows/ReactNativeNotes/NotesPage.xaml b/windows/ReactNativeNotes/NotesPage.xaml
index 3b6e62e..051d93d 100644
--- a/windows/ReactNativeNotes/NotesPage.xaml
+++ b/windows/ReactNativeNotes/NotesPage.xaml
@@ -7,16 +7,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:react="using:Microsoft.ReactNative"
Background="Transparent"
+ NavigationCacheMode="Enabled"
mc:Ignorable="d">
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/windows/ReactNativeNotes/ReactNativeNotes.vcxproj b/windows/ReactNativeNotes/ReactNativeNotes.vcxproj
index 1a65328..43606ea 100644
--- a/windows/ReactNativeNotes/ReactNativeNotes.vcxproj
+++ b/windows/ReactNativeNotes/ReactNativeNotes.vcxproj
@@ -114,10 +114,6 @@
-
- ApplicationSettingsPage.xaml
- Code
-
CreateNotePage.xaml
Code
@@ -131,7 +127,6 @@
-
NoteWidgetDetailsPage.xaml
Code
@@ -150,10 +145,6 @@
ToDoListPage.xaml
Code
-
- UserAccountPage.xaml
- Code
-
@@ -175,10 +166,6 @@
-
- ApplicationSettingsPage.xaml
- Code
-
CreateNotePage.xaml
Code
@@ -210,19 +197,11 @@
ToDoListPage.xaml
Code
-
- UserAccountPage.xaml
- Code
-
App.xaml
-
- ApplicationSettingsPage.xaml
- Code
-
CreateNotePage.xaml
Code
@@ -243,10 +222,6 @@
ToDoListPage.xaml
Code
-
- UserAccountPage.xaml
- Code
-
@@ -256,9 +231,6 @@
-
- Designer
-
Designer
@@ -274,9 +246,6 @@
Designer
-
- Designer
-
diff --git a/windows/ReactNativeNotes/ReactNativeNotes.vcxproj.filters b/windows/ReactNativeNotes/ReactNativeNotes.vcxproj.filters
index 0483814..a47876f 100644
--- a/windows/ReactNativeNotes/ReactNativeNotes.vcxproj.filters
+++ b/windows/ReactNativeNotes/ReactNativeNotes.vcxproj.filters
@@ -9,7 +9,6 @@
-
@@ -21,7 +20,6 @@
-
@@ -34,13 +32,11 @@
-
-
@@ -82,11 +78,9 @@
-
-
\ No newline at end of file
diff --git a/windows/ReactNativeNotes/ReactPackageProvider.cpp b/windows/ReactNativeNotes/ReactPackageProvider.cpp
index 24d5ed7..600c8e0 100644
--- a/windows/ReactNativeNotes/ReactPackageProvider.cpp
+++ b/windows/ReactNativeNotes/ReactPackageProvider.cpp
@@ -5,8 +5,6 @@
#include "NativeModules/DatabaseHandler.hpp"
#include "NativeModules/NoteWidgetClickHandler.hpp"
#include "NativeModules/Repository/Repository.hpp"
-#include "NativeModules/UserAccount/FilePicker.hpp"
-#include "NativeModules/UserAccount/User.hpp"
using namespace winrt::Microsoft::ReactNative;
diff --git a/windows/ReactNativeNotes/ToDoListPage.xaml b/windows/ReactNativeNotes/ToDoListPage.xaml
index 768229c..800baee 100644
--- a/windows/ReactNativeNotes/ToDoListPage.xaml
+++ b/windows/ReactNativeNotes/ToDoListPage.xaml
@@ -8,15 +8,5 @@
xmlns:react="using:Microsoft.ReactNative"
Background="Transparent"
NavigationCacheMode="Enabled">
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/windows/ReactNativeNotes/UserAccountPage.cpp b/windows/ReactNativeNotes/UserAccountPage.cpp
deleted file mode 100644
index 23536ae..0000000
--- a/windows/ReactNativeNotes/UserAccountPage.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "pch.h"
-#include "UserAccountPage.h"
-#include "UserAccountPage.g.cpp"
-
-#include "App.h"
-
-
-namespace winrt::ReactNativeNotes::implementation
-{
- UserAccountPage::UserAccountPage()
- {
- InitializeComponent();
- auto app = Windows::UI::Xaml::Application::Current().as();
- ReactRootView().ReactNativeHost( app->Host() );
- }
-}
diff --git a/windows/ReactNativeNotes/UserAccountPage.h b/windows/ReactNativeNotes/UserAccountPage.h
deleted file mode 100644
index 2cc2356..0000000
--- a/windows/ReactNativeNotes/UserAccountPage.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include "UserAccountPage.g.h"
-
-namespace winrt::ReactNativeNotes::implementation
-{
- class UserAccountPage : public UserAccountPageT
- {
- public:
- UserAccountPage();
- };
-}
-
-namespace winrt::ReactNativeNotes::factory_implementation
-{
- class UserAccountPage : public UserAccountPageT
- {
- };
-}
diff --git a/windows/ReactNativeNotes/UserAccountPage.idl b/windows/ReactNativeNotes/UserAccountPage.idl
deleted file mode 100644
index 196446a..0000000
--- a/windows/ReactNativeNotes/UserAccountPage.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace ReactNativeNotes
-{
- [default_interface]
- runtimeclass UserAccountPage : Windows.UI.Xaml.Controls.Page
- {
- UserAccountPage();
- }
-}
diff --git a/windows/ReactNativeNotes/UserAccountPage.xaml b/windows/ReactNativeNotes/UserAccountPage.xaml
deleted file mode 100644
index 97e5ac3..0000000
--- a/windows/ReactNativeNotes/UserAccountPage.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-