Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/pages/modules/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Then, if your project doesn't have native projects generated (**android** and **

### Use the local module

Import the local module in your application, for example in **App.js** or **App.tsx** or **app/(tabs)/index.tsx**:
Import the local module in your application, for example in **App.js** or **App.tsx** or **src/app/index.tsx**:

```tsx app/(tabs)/index.tsx
```tsx src/app/index.tsx
/* @hide ...*/ /* @end */
import MyModule from '@/modules/my-module';

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/modules/third-party-library.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ public class ExpoRadialChartModule: Module {

## Write an example app to use the module

You can update the app inside the **app** directory to test the module. Use the `ExpoRadialChartView` component to render a pie chart with three slices:
You can update the app inside the **src/app** directory to test the module. Use the `ExpoRadialChartView` component to render a pie chart with three slices:

```tsx app/(tabs)/index.tsx
```tsx src/app/index.tsx
import { ExpoRadialChartView } from '@/modules/expo-radial-chart';
import { StyleSheet } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ Compile and run the app with the following command:
]}
/>

You can now use the module in your app. To test it, edit the **app/(tabs)/index.tsx** file in your app and render the text message from the `expo-settings` module:
You can now use the module in your app. To test it, edit the **src/app/index.tsx** file in your app and render the text message from the `expo-settings` module:

```tsx app/(tabs)/index.tsx
```tsx src/app/index.tsx
import React from 'react';
import { Text, View } from 'react-native';
import * as Settings from 'expo-settings';
Expand Down Expand Up @@ -180,9 +180,9 @@ To test the published module in a new project, create a new app and install the
]}
/>

You can now use the module in your app! To test it, edit **app/(tabs)/index.tsx** and render the text message from **expo-settings**.
You can now use the module in your app! To test it, edit **src/app/index.tsx** and render the text message from **expo-settings**.

```tsx app/(tabs)/index.tsx
```tsx src/app/index.tsx
import React from 'react';
import * as Settings from 'expo-settings';
import { Text, View } from 'react-native';
Expand Down
Loading