使用 Microsoft Graph 构建 React Native 应用

本教程向您介绍如何构建使用 Microsoft Graph API 来检索用户的日历信息的响应本机应用程序。This tutorial teaches you how to build an React Native app that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

如果您只想下载已完成的教程,可以下载或克隆GitHub 存储库If you prefer to just download the completed tutorial, you can download or clone the GitHub repository.

先决条件Prerequisites

在开始本教程之前,您应在开发计算机上安装以下程序。Before you start this tutorial, you should have the following installed on your development machine.

您还应具有一个个人的 Microsoft 帐户,其中包含 Outlook.com 上的邮箱,或 Microsoft 工作或学校帐户。You should also have either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account. 如果你没有 Microsoft 帐户,可以使用以下几种方法获取免费帐户:If you don't have a Microsoft account, there are a couple of options to get a free account:

备注

本教程是使用响应本机 CLI 编写的,其中包含特定的先决条件,具体取决于您的操作系统和目标平台。This tutorial was written using the React Native CLI, which has specific prerequisites depending on your operating system and target platforms. 有关配置开发计算机的说明,请参阅响应原生入门See React Native Getting Started for instructions on configuring your development machine. 下面列出了用于本教程的版本。The versions used for this tutorial are listed below. 本指南中的步骤可能适用于其他版本,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

  • 适用于 Android 9.0 SDK 的 android Studio 3.6.2 版本Android Studio version 3.6.2 with the Android 9.0 SDK
  • Java 开发工具包版本12.0。2Java Development Kit version 12.0.2
  • Xcode 版本11。4Xcode version 11.4
  • Node.js 版本12.16。2Node.js version 12.16.2

反馈Feedback

请在GitHub 存储库中提供有关本教程的任何反馈。Please provide any feedback on this tutorial in the GitHub repository.