From abc6eeaffb405d9c9f42f755130e9eaa2812d3fe Mon Sep 17 00:00:00 2001 From: Jason Divock Date: Fri, 25 Mar 2022 15:01:41 -0600 Subject: [PATCH] toc --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5e09eabf..41e95dec 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,13 @@ Stripe Terminal enables you to build your own in-person checkout to accept payme - [Permissions](#permissions-1) - [Manifest](#manifest) - [Usage With Expo](#usage-with-expo) + - [Android](#android-2) + - [Configuring the SDK](#configuring-the-sdk) + - [Build](#build) - [Example Code](#example-code) - [Initialization](#initialization) - - [Discovering Devices](#discovering-devices) - - [More Examples](#more-examples) + - [Hooks and Events](#hooks-and-events) + - [Common Operations](#common-operations) - [Additional Docs](#additional-docs) - [Internal Docs](#internal-docs) - [Contributing](#contributing) @@ -226,7 +229,7 @@ After [installing](#installation) the SDK, add the [config plugin](https://docs. ### Build -Next, rebuild your app as described in the ['Adding custom native code'](https://docs.expo.io/workflow/customizing/) guide with: +Rebuild your app as described in the ['Adding custom native code'](https://docs.expo.io/workflow/customizing/) guide with: ``` expo run:ios @@ -273,7 +276,7 @@ function Root() { ``` As a last step, simply call `initialize` method from `useStripeTerminal` hook. -Please note that `initialize` method must be called from the nested component of `StripeTerminalProvider`. +Please note that `initialize` method must be called from a nested component of `StripeTerminalProvider`. ```tsx // App.tsx @@ -290,7 +293,7 @@ function App() { } ``` -## Discovering Devices +## Hooks and Events Stripe Terminal SDK provides dedicated hook which exposes bunch of methods and props to be used within your App. Additionally, you have access to the internal state of SDK that contains information about the current connection, discovered readers and loading state. @@ -365,7 +368,7 @@ import { export default withStripeTerminal(PaymentScreen); ``` -## More Examples +## Common Operations You can find further examples of common SDK actions here: