Advertisement
Guest User

Options.js

a guest
Oct 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2. import {ScrollView, StatusBar, Platform} from 'react-native';
  3. import { Ionicons } from '@expo/vector-icons';
  4. import {ListItem, Separator} from '../components/List';
  5.  
  6. const ICON_PREFIX = Platform.OS === 'ios' ? 'ios' : 'md';
  7. const ICON_COLOR = '#868686';
  8. const ICON_SIZE = 25;
  9.  
  10. class Options extends Component {
  11.  
  12.  
  13.   render() {
  14.     return (
  15.       <ScrollView>
  16.         <StatusBar translucent={false} barStyle="defautl"/>
  17.         <ListItem
  18.           text="Themes"
  19.           onPress={this.handlePressTheme}
  20.           customIcon={
  21.             <Ionicons
  22.             name={`${ICON_PREFIX}-arrow-forward`}
  23.             size={ICON_SIZE}
  24.             color={ICON_COLOR}
  25.             />
  26.           }
  27.         />
  28.         <Separator />
  29.         <ListItem
  30.           text="External Link"
  31.           onPress={this.handlePressSite}
  32.           customIcon={
  33.             <Ionicons
  34.             name={`${ICON_PREFIX}-link`}
  35.             size={ICON_SIZE}
  36.             color={ICON_COLOR}
  37.             />
  38.           }
  39.         />
  40.       </ScrollView>
  41.     );
  42.   }
  43. }
  44. export default Options;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement