Skip to content

Commit 9946bf4

Browse files
committed
docs: top level src for expo examples refactor
1 parent c35b9ef commit 9946bf4

24 files changed

Lines changed: 18 additions & 24 deletions

examples/expo-router-advanced/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For a minimal setup, see `examples/expo-router`.
1414

1515
## Native intent handling
1616

17-
This example uses `app/+native-intent.tsx` to:
17+
This example uses `src/app/+native-intent.tsx` to:
1818

1919
- intercept Detour domains before Expo Router routing,
2020
- redirect custom scheme links to a dedicated `/third-party` route based on user-specific logic not related with Detour
File renamed without changes.
File renamed without changes.

examples/expo-router-advanced/app/(app)/home.tsx renamed to examples/expo-router-advanced/src/app/(app)/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link, useRouter } from 'expo-router';
22
import { useEffect } from 'react';
33
import { Pressable, StyleSheet, Text, View } from 'react-native';
4-
import { useAuth } from '../../src/auth';
4+
import { useAuth } from '../../auth';
55
import { useDetourContext } from '@swmansion/react-native-detour';
66

77
const ALLOWED_ROUTE = '/details';

examples/expo-router-advanced/app/+native-intent.tsx renamed to examples/expo-router-advanced/src/app/+native-intent.tsx

File renamed without changes.

examples/expo-router-advanced/app/+not-found.tsx renamed to examples/expo-router-advanced/src/app/+not-found.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link } from 'expo-router';
22
import { Text, View } from 'react-native';
3-
import { useAuth } from '../src/auth';
4-
import { styles } from '../src/styles';
3+
import { useAuth } from '../auth';
4+
import { styles } from '../styles';
55

66
export default function NotFoundScreen() {
77
const { isSignedIn } = useAuth();

examples/expo-router-advanced/app/_layout.tsx renamed to examples/expo-router-advanced/src/app/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Stack } from 'expo-router';
22
import { DetourProvider, type Config } from '@swmansion/react-native-detour';
33
import * as SplashScreen from 'expo-splash-screen';
4-
import { AuthProvider, useAuth } from '../src/auth';
5-
import { DetourGate } from '../src/DetourGate';
4+
import { AuthProvider, useAuth } from '../auth';
5+
import { DetourGate } from '../DetourGate';
66

77
const detourConfig: Config = {
88
apiKey: process.env.EXPO_PUBLIC_DETOUR_API_KEY!,

examples/expo-router-advanced/app/index.tsx renamed to examples/expo-router-advanced/src/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Redirect } from 'expo-router';
2-
import { useAuth } from '../src/auth';
2+
import { useAuth } from '../auth';
33

44
export default function IndexScreen() {
55
const { isSignedIn } = useAuth();

examples/expo-router-advanced/app/sign-in.tsx renamed to examples/expo-router-advanced/src/app/sign-in.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Pressable, StyleSheet, Text, View } from 'react-native';
2-
import { useAuth } from '../src/auth';
2+
import { useAuth } from '../auth';
33
import { useRouter } from 'expo-router';
44

55
export default function SignInScreen() {

examples/expo-router-advanced/app/third-party.tsx renamed to examples/expo-router-advanced/src/app/third-party.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link, useLocalSearchParams } from 'expo-router';
22
import { Text, View } from 'react-native';
3-
import { useAuth } from '../src/auth';
4-
import { styles } from '../src/styles';
3+
import { useAuth } from '../auth';
4+
import { styles } from '../styles';
55

66
// This screen is used to handle deep links from third-party sources, such as native intents or custom schemes.
77
export default function ThirdPartyScreen() {

0 commit comments

Comments
 (0)