Skip to content

Commit

Permalink
docs: add deprecation notice in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jun 5, 2024
1 parent 83aca28 commit e3d972d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,18 @@
<p align="center">
<a href="https:/expo/examples">
<img alt="create-react-native-app" src="./.gh-assets/banner.svg">
<h1 align="center">Create React Native App</h1>
<h1 align="center">⚠️ Deprecated</h1>
</a>
</p>

<!-- Header -->

<p align="center">
<b>The fastest way to create React Native apps</b>
<b>It's recommended to use a framework to build apps with React Native, <a href="https://reactnative.dev/docs/environment-setup">learn more</a>.</b>
<br />

<p align="center">
<!-- iOS -->
<img alt="Supports Expo iOS" longdesc="Supports Expo iOS" src="https://img.shields.io/badge/iOS-000.svg?style=flat-square&logo=APPLE&labelColor=999999&logoColor=fff" />
<!-- Android -->
<img alt="Supports Expo Android" longdesc="Supports Expo Android" src="https://img.shields.io/badge/Android-000.svg?style=flat-square&logo=ANDROID&labelColor=A4C639&logoColor=fff" />
<!-- Web -->
<img alt="Supports Expo Web" longdesc="Supports Expo Web" src="https://img.shields.io/badge/web-000.svg?style=flat-square&logo=GOOGLE-CHROME&labelColor=4285F4&logoColor=fff" />
</p>
<p align="center">
<a href="https://packagephobia.now.sh/result?p=create-react-native-app">
<img alt="the best way to bootstrap a react native app" longdesc="the best way to create a react native app" src="https://flat.badgen.net/packagephobia/install/create-react-native-app" />
</a>
Use <code>npx create-expo-app</code> instead.
</p>

</p>

<!-- Body -->
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ it('logs @react-native-community/cli as alternative', async () => {

it('logs more information link', async () => {
expect(await execute()).toMatchObject({
stderr: expect.stringContaining('https://reactnative.dev/docs/getting-started'),
stderr: expect.stringContaining('https://reactnative.dev/docs/environment-setup'),
});
});
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It's recommended to use a framework to build apps with React Native, for example
React Native Community template:
{bold npx @react-native-community/cli init}
Learn more: {underline https://reactnative.dev/docs/getting-started}
Learn more: {underline https://reactnative.dev/docs/environment-setup}
`);

process.exit(1);

0 comments on commit e3d972d

Please sign in to comment.