This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class XUnitOutputDemo : IDisposable | |
{ | |
private readonly TextWriter consoleOut; | |
private readonly XUnitTestOutputHelperToTextWriterConverter outAdapter; | |
public XUnitOutputDemo(ITestOutputHelper output) | |
{ | |
consoleOut = Console.Out; | |
converter = new XUnitTestOutputHelperToTextWriterConverter(output); | |
Console.SetOut(converter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { View, Picker, ActionSheetIOS, Platform, StyleSheet } from 'react-native'; | |
import { Button, Icon } from 'react-native-elements'; | |
export default class PickerDropDown extends React.Component { | |
onIOSButton = () => { | |
let options = this.props.children.map((item, i) => { | |
return item.props.label; | |
}); | |
options.push("Cancel"); |