mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
Updated for iOS
This commit is contained in:
parent
11ad6c6bef
commit
b4b9e285eb
@ -1,53 +1,51 @@
|
|||||||
/**
|
const { main } = require('./main.js');
|
||||||
* Sample React Native App
|
|
||||||
* https://github.com/facebook/react-native
|
|
||||||
* @flow
|
|
||||||
*/
|
|
||||||
|
|
||||||
const React = require('react'); const Component = React.Component;
|
main();
|
||||||
import {
|
|
||||||
AppRegistry,
|
|
||||||
StyleSheet,
|
|
||||||
Text,
|
|
||||||
View
|
|
||||||
} from 'react-native';
|
|
||||||
|
|
||||||
module.exports = default class Joplin extends Component {;
|
// const React = require('react'); const Component = React.Component;
|
||||||
render() {
|
// import {
|
||||||
return (
|
// AppRegistry,
|
||||||
<View style={styles.container}>
|
// StyleSheet,
|
||||||
<Text style={styles.welcome}>
|
// Text,
|
||||||
Welcome to React Native!
|
// View
|
||||||
</Text>
|
// } from 'react-native';
|
||||||
<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 styles = StyleSheet.create({
|
// module.exports = default class Joplin extends Component {;
|
||||||
container: {
|
// render() {
|
||||||
flex: 1,
|
// return (
|
||||||
justifyContent: 'center',
|
// <View style={styles.container}>
|
||||||
alignItems: 'center',
|
// <Text style={styles.welcome}>
|
||||||
backgroundColor: '#F5FCFF',
|
// Welcome to React Native!
|
||||||
},
|
// </Text>
|
||||||
welcome: {
|
// <Text style={styles.instructions}>
|
||||||
fontSize: 20,
|
// To get started, edit index.ios.js
|
||||||
textAlign: 'center',
|
// </Text>
|
||||||
margin: 10,
|
// <Text style={styles.instructions}>
|
||||||
},
|
// Press Cmd+R to reload,{'\n'}
|
||||||
instructions: {
|
// Cmd+D or shake for dev menu
|
||||||
textAlign: 'center',
|
// </Text>
|
||||||
color: '#333333',
|
// </View>
|
||||||
marginBottom: 5,
|
// );
|
||||||
},
|
// }
|
||||||
});
|
// }
|
||||||
|
|
||||||
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);
|
||||||
|
@ -45,7 +45,6 @@
|
|||||||
"ReactNativeClient/android/app/build",
|
"ReactNativeClient/android/app/build",
|
||||||
"ReactNativeClient/android/build",
|
"ReactNativeClient/android/build",
|
||||||
"ReactNativeClient/android/local.properties",
|
"ReactNativeClient/android/local.properties",
|
||||||
"ReactNativeClient/ios",
|
|
||||||
"ReactNativeClient/node_modules",
|
"ReactNativeClient/node_modules",
|
||||||
"ElectronClient/app/gui/note-viewer/highlight/styles",
|
"ElectronClient/app/gui/note-viewer/highlight/styles",
|
||||||
"tests/logs",
|
"tests/logs",
|
||||||
|
Loading…
Reference in New Issue
Block a user