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 ( - - -