src/Accounts/eventScanner.js
// The little UI bit that toggles between scan modes
The little UI bit that toggles between scan modes
The little UI bit that toggles between scan modes
function ModeControl({mode, toggle}) {
  return (
    <TouchableHighlight
      style={eventScannerStyles.pillContainer}
      onPress={toggle}
    >
      <View style={styles.flexRowCenter}>
        <Text
          style={[eventScannerStyles.pillTextWhite, styles.marginRightTiny]}
        >
          Check-in Mode:
        </Text>
        <Text style={eventScannerStyles.pillTextPrimary}>
          {mode.toUpperCase()}
        </Text>
      </View>
    </TouchableHighlight>
  )
}
function ModeControl ( { mode , toggle } ) { return ( < TouchableHighlight style = { eventScannerStyles . pillContainer } onPress = { toggle } > < View style = { styles . flexRowCenter } > < Text style = { [ eventScannerStyles . pillTextWhite , styles . marginRightTiny ] } > 
          Check-in Mode:
         < / Text > < Text style = { eventScannerStyles . pillTextPrimary } > { mode . toUpperCase ( ) } < / Text > < / View > < / TouchableHighlight > ) }
The little UI bit that toggles between scan modes
The little UI bit that toggles between scan modes