/** * Picker.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * RN-specific implementation of the cross-platform Picker abstraction. */ import * as React from 'react'; import * as RN from 'react-native'; import * as RX from '../common/Interfaces'; import { map } from './utils/lodashMini'; export class Picker extends RX.Picker { render() { return ( } mode={ this.props.mode } testID={ this.props.testId } > { map(this.props.items, (i, idx) => ) } ); } onValueChange = (itemValue: any, itemPosition: number) => { this.props.onValueChange(itemValue, itemPosition); } } export default Picker;