1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Updated for iOS

This commit is contained in:
Laurent Cozic 2017-11-15 15:37:02 +00:00
parent 11ad6c6bef
commit b4b9e285eb
2 changed files with 47 additions and 50 deletions

View File

@ -1,53 +1,51 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
const { main } = require('./main.js');
const React = require('react'); const Component = React.Component;
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
main();
module.exports = default class Joplin extends Component {;
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.ios.js
</Text>
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
</Text>
</View>
);
}
}
// const React = require('react'); const Component = React.Component;
// import {
// AppRegistry,
// StyleSheet,
// Text,
// View
// } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
// module.exports = default class Joplin extends Component {;
// render() {
// return (
// <View style={styles.container}>
// <Text style={styles.welcome}>
// Welcome to React Native!
// </Text>
// <Text style={styles.instructions}>
// To get started, edit index.ios.js
// </Text>
// <Text style={styles.instructions}>
// Press Cmd+R to reload,{'\n'}
// Cmd+D or shake for dev menu
// </Text>
// </View>
// );
// }
// }
AppRegistry.registerComponent('Joplin', () => Joplin);
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// justifyContent: 'center',
// alignItems: 'center',
// backgroundColor: '#F5FCFF',
// },
// welcome: {
// fontSize: 20,
// textAlign: 'center',
// margin: 10,
// },
// instructions: {
// textAlign: 'center',
// color: '#333333',
// marginBottom: 5,
// },
// });
// AppRegistry.registerComponent('Joplin', () => Joplin);

View File

@ -45,7 +45,6 @@
"ReactNativeClient/android/app/build",
"ReactNativeClient/android/build",
"ReactNativeClient/android/local.properties",
"ReactNativeClient/ios",
"ReactNativeClient/node_modules",
"ElectronClient/app/gui/note-viewer/highlight/styles",
"tests/logs",