You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

title_bar.js 932B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import React from 'react';
  2. import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
  3. function TitleBar(props){
  4. return (
  5. <View style={styles.controlBar}>
  6. <View style={{
  7. flexDirection: 'row'
  8. }}>
  9. <Text>Objectif</Text>
  10. <TextInput/>
  11. </View>
  12. <View style={{
  13. alignItems: 'flex-end',
  14. flexDirection: 'row'
  15. }}>
  16. <Button title={"Jour"}></Button>
  17. <Button title={"Mois"}></Button>
  18. <Button title={"YTD"}></Button>
  19. </View>
  20. </View>
  21. );
  22. }
  23. const styles = StyleSheet.create({
  24. container: {
  25. flex: 1,
  26. backgroundColor: '#fff',
  27. alignItems: 'center',
  28. justifyContent: 'center',
  29. },
  30. controlBar: {
  31. flex: 1,
  32. flexDirection: "row",
  33. justifyContent: 'space-between'
  34. }
  35. });
  36. export default TitleBar;