Skip to content

Commit

Permalink
fix: fix docs linting
Browse files Browse the repository at this point in the history
  • Loading branch information
iykazrji committed Jan 28, 2025
1 parent 8e13008 commit dc86dde
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions site/pages/react-native/getting-started/getting-started-expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ const config = getDefaultConfig(__dirname);
// The following code ensures we have the necessary
// shims for crypto built into our project
config.resolver.extraNodeModules = {
...config.resolver.extraNodeModules,
...require("node-libs-react-native"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
...config.resolver.extraNodeModules,
...require("node-libs-react-native"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
};

module.exports = config;
Expand Down Expand Up @@ -124,8 +124,8 @@ CAUTION: The React Native Signer package is currently in Alpha and is only suppo

There are a few things to note before using the Signer package in your Expo project:

- The Signer package is incompatible with Expo Go and as a result, you'd need to use a Development Build. Check the [Expo Development Builds documentation](https://docs.expo.dev/develop/development-builds/introduction/) for more information.
- The Signer package requires you to be on React Native's new architecture. For information on how to enable it in your Expo project, check their [documentation](https://docs.expo.dev/guides/new-architecture/).
- The Signer package is incompatible with Expo Go and as a result, you'd need to use a Development Build. Check the [Expo Development Builds documentation](https://docs.expo.dev/develop/development-builds/introduction/) for more information.
- The Signer package requires you to be on React Native's new architecture. For information on how to enable it in your Expo project, check their [documentation](https://docs.expo.dev/guides/new-architecture/).

Once the prerequisites are met, you can install the Signer package using the following command:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ const { getDefaultConfig, mergeConfig } = require("@react-native/metro-config");
const defaultConfig = getDefaultConfig(__dirname);

const extraNodeModules = {
...defaultConfig.resolver.extraNodeModules,
...require("node-libs-react-native"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
...defaultConfig.resolver.extraNodeModules,
...require("node-libs-react-native"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
};

const config = {
resolver: {
extraNodeModules,
},
resolver: {
extraNodeModules,
},
};

module.exports = mergeConfig(defaultConfig, config);
Expand Down
24 changes: 12 additions & 12 deletions site/pages/react-native/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Visit the [Expo docs](https://docs.expo.dev/get-started/create-a-project/) for m
Whether you're using Expo or a bare React Native app, follow our guides to get started with using Account Kit in your project.

<div className="flex flex-row gap-4">
<TileButton
icon={<ExpoIcon width={24} height={24} />}
title="Expo"
description="Get started with using Account Kit in your Expo project"
href="/react-native/getting-started/getting-started-expo"
/>
<TileButton
icon={<ReactNativeIcon width={24} height={24} />}
title="Bare React Native"
description="Get started with using Account Kit in your bare React Native project"
href="/react-native/getting-started/getting-started-rn-bare"
/>
<TileButton
icon={<ExpoIcon width={24} height={24} />}
title="Expo"
description="Get started with using Account Kit in your Expo project"
href="/react-native/getting-started/getting-started-expo"
/>
<TileButton
icon={<ReactNativeIcon width={24} height={24} />}
title="Bare React Native"
description="Get started with using Account Kit in your bare React Native project"
href="/react-native/getting-started/getting-started-rn-bare"
/>
</div>

0 comments on commit dc86dde

Please sign in to comment.