Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. import React from 'react';
  2. import { StyleSheet, Text, View } from 'react-native';
  3. import MotivateComponent from './Motivate'
  4.  
  5. export default class MotivationalAppKonnect extends React.Component {
  6. state={
  7. Lo: [
  8. (quote)= 'There is a madness in loving you, a lack of reason that makes it feel so flawless',
  9. (author)='Leo Christopher',
  10. (date)='12th August,2015',
  11. (type)='Love '
  12. ],
  13. Ed: [
  14. (quote)='An investment in knowledge pays the best interest -',
  15. (author)='Arthur Robinson',
  16. (date)='15th July,2012',
  17. (type)='Educational',
  18.  
  19. ],
  20. Mu:[
  21. (quote)='Without music, life would be a mistake ― ',
  22. (author)='Friedrich Nietzsche',
  23. (date)='31st December,1972',
  24. (type)='Music',
  25.  
  26. ],
  27. Pr:[
  28. (quote)='While no success, try again.If dead, break',
  29. (author)='Jones Reshiavic',
  30. (date)='25th June 2018',
  31. (type)='Programming',
  32.  
  33. ]
  34. }
  35. e=()=>{this.setState({Lo:this.state.Ed})}
  36. f=()=>{this.setState({Ed:this.state.Mu})}
  37. g=()=>{this.setState({Mu:this.state.Pr})}
  38.  
  39. render() {
  40. return (
  41. <View style={styles.container}>
  42. <MotivateComponent a={this.state.Lo} b={this.e} />
  43. </View>
  44. )
  45. }
  46. }
  47.  
  48. const styles = StyleSheet.create({
  49. container: {
  50. color:'black',
  51. flex: 1,
  52. backgroundColor: '#fff',
  53. alignItems: 'center',
  54. justifyContent: 'center',
  55. },
  56. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement