mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove usage of Picker from Accessibility Example
Summary: Changelog: [Internal] - Remove Picker from accessibility example as a first step to deprecate Picker from react-native Reviewed By: kacieb Differential Revision: D29082453 fbshipit-source-id: d1d6eb0514453126351b41c2ca5d72d2c81f5dc9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
883f4651bc
commit
572deaebd9
@@ -23,7 +23,6 @@ const {
|
||||
Alert,
|
||||
StyleSheet,
|
||||
Slider,
|
||||
Picker,
|
||||
Platform,
|
||||
} = require('react-native');
|
||||
import type {EventSubscription} from 'react-native/Libraries/vendor/emitter/EventEmitter';
|
||||
@@ -736,27 +735,6 @@ class AccessibilityActionsExample extends React.Component<{}> {
|
||||
Text
|
||||
</Text>
|
||||
</RNTesterBlock>
|
||||
|
||||
<RNTesterBlock title="Picker with accessibility actions">
|
||||
<Picker
|
||||
accessible={true}
|
||||
accessibilityActions={[
|
||||
{name: 'activate', label: 'activate label'},
|
||||
{name: 'copy', label: 'copy label'},
|
||||
]}
|
||||
onAccessibilityAction={event => {
|
||||
switch (event.nativeEvent.actionName) {
|
||||
case 'activate':
|
||||
Alert.alert('Alert', 'Activate accessiblity action');
|
||||
break;
|
||||
case 'copy':
|
||||
Alert.alert('Alert', 'copy action success');
|
||||
break;
|
||||
}
|
||||
}}>
|
||||
<Picker.Item label="Item 1" value="item1" />
|
||||
</Picker>
|
||||
</RNTesterBlock>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user