React Native 中删除的组件及可替代方案如下:
| 被删除/废弃的组件 | 删除的版本 | 替代方案 |
|---|---|---|
| ListView | 0.63 | FlatList、SectionList |
| Navigator | 0.44 | react-navigation |
| TabBarIOS | 0.75.2 | react-native-tab-view、@react-navigation/bottom-tabs |
| MapView | 0.44 | react-native-maps |
| Picker | 0.65.1+ | @react-native-picker/picker |
| WebView | 0.60+ | react-native-webview |
| Slider | 0.60+ | @react-native-community/slider |
| ImagePickerIOS | 已废弃 | react-native-image-picker |
| GeolocationIOS | 已废弃 | react-native-geolocation-service |
| DatePickerIOS | 已废弃 | @react-native-community/datetimepicker、react-native-modal-datetime-picker |
| DrawerLayoutAndroid | 已废弃 | react-navigation中的Drawer Navigator |
| ART | 已废弃 | react-native-svg |
| ToastAndroid | 已废弃 | toast-native |
| NetInfo | 已废弃 | @react-native-community/netinfo |
| AsyncStorage | 已废弃 | @react-native-async-storage/async-storage |
| CameraRoll | 已废弃 | @react-native-camera-roll |
| ProgressViewIOS | 已废弃 | @react-native-community/progress-view |
| UIManager.measure | 0.63+ | 使用 useRef 和 useLayoutEffect 钩子函数 |
| SwipeableFlatList | 0.60+ | react-native-swipeable-lists |
| Clipboard | 已废弃 | react-native-clipboard |
| Share | 已废弃 | react-native-share |
| ShareActionSheetIOS | 已废弃 | react-native-share |
| UIManager | 已废弃 | react-native-safe-area-context |
| EventEmitter | 已废弃 | react-native-event-bus |
| LayoutAnimation | 已废弃 | react-native-reanimated |
| ScrollViewRefreshControl | 已废弃 | react-native-pull-to-refresh |
| RCTBridge | 已废弃 | react-native-bridge-core |
欢迎补充,需要更详细的信息或具体的使用指南,请参考对应的官方文档或社区资源。