核心组件和 API
React Native 提供了许多内置的 核心组件 可供你在应用中使用。你可以在左侧边栏(或上面的菜单,如果你在窄屏幕上)找到它们。如果你不确定从哪里开始,请查看以下类别:
¥React Native provides a number of built-in Core Components ready for you to use in your app. You can find them all in the left sidebar (or menu above, if you are on a narrow screen). If you're not sure where to get started, take a look at the following categories:
你不仅限于与 React Native 打包的组件和 API。React Native 拥有一个由数千名开发者组成的社区。如果你正在寻找执行特定操作的库,请参阅 本指南关于寻找库。
¥You're not limited to the components and APIs bundled with React Native. React Native has a community of thousands of developers. If you're looking for a library that does something specific, please refer to this guide about finding libraries.
基本组件
¥Basic Components
大多数应用最终都会使用这些基本组件中的一个或多个。
¥Most apps will end up using one or more of these basic components.
用户界面
¥User Interface
这些通用用户界面控件将在任何平台上渲染。
¥These common user interface controls will render on any platform.
列表视图
¥List Views
与更通用的 ScrollView
不同,以下列表视图组件仅渲染当前在屏幕上显示的元素。这使得它们成为显示长数据列表的高性能选择。
¥Unlike the more generic ScrollView
, the following list view components only render elements that are currently showing on the screen. This makes them a performant choice for displaying long lists of data.
Android 组件和 API
¥Android Components and APIs
以下许多组件为常用的 Android 类提供了封装器。
¥Many of the following components provide wrappers for commonly used Android classes.
iOS 组件和 API
¥iOS Components and APIs
以下许多组件为常用的 UIKit 类提供了封装器。
¥Many of the following components provide wrappers for commonly used UIKit classes.
其他的
¥Others
这些组件可能对某些应用有用。有关组件和 API 的详尽列表,请查看左侧的侧边栏(如果你使用的是窄屏幕,则查看上面的菜单)。
¥These components may be useful for certain applications. For an exhaustive list of components and APIs, check out the sidebar to the left (or menu above, if you are on a narrow screen).