Skip to content

Commit 2c8c7b1

Browse files
committed
chore: fix require cycles
1 parent e0046f6 commit 2c8c7b1

38 files changed

+61
-58
lines changed

example/src/DrawerItems.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import {
1818
} from 'react-native-paper';
1919

2020
import { deviceColorsSupported, isWeb } from '../utils';
21-
22-
import { PreferencesContext, useExampleTheme } from './';
21+
import { useExampleTheme } from './hooks/useExampleTheme';
22+
import { PreferencesContext } from './PreferencesContext';
2323

2424
const DrawerItemsData = [
2525
{

example/src/ExampleList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ import ThemingWithReactNavigation from './Examples/ThemingWithReactNavigation';
4949
import ToggleButtonExample from './Examples/ToggleButtonExample';
5050
import TooltipExample from './Examples/TooltipExample';
5151
import TouchableRippleExample from './Examples/TouchableRippleExample';
52-
53-
import { useExampleTheme } from '.';
52+
import { useExampleTheme } from './hooks/useExampleTheme';
5453

5554
export const mainExamples: Record<
5655
string,

example/src/Examples/ActivityIndicatorExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
MD3Colors,
1010
} from 'react-native-paper';
1111

12-
import { useExampleTheme } from '..';
12+
import { useExampleTheme } from '../hooks/useExampleTheme';
1313
import ScreenWrapper from '../ScreenWrapper';
1414

1515
const ActivityIndicatorExample = () => {

example/src/Examples/AnimatedFABExample/AnimatedFABExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import CustomFABControls, {
1616
Controls,
1717
initialControls,
1818
} from './CustomFABControls';
19-
import { useExampleTheme } from '../..';
2019
import { animatedFABExampleData } from '../../../utils';
20+
import { useExampleTheme } from '../../hooks/useExampleTheme';
2121

2222
type Item = {
2323
id: string;

example/src/Examples/AnimatedFABExample/CustomFAB.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99

1010
import { AnimatedFAB } from 'react-native-paper';
1111

12-
import { useExampleTheme } from '../..';
12+
import { useExampleTheme } from '../../hooks/useExampleTheme';
1313

1414
type CustomFABProps = {
1515
animatedValue: Animated.Value;

example/src/Examples/AnimatedFABExample/CustomFABControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
} from 'react-native-paper';
99
import { Paragraph, RadioButton, Text } from 'react-native-paper';
1010

11-
import { useExampleTheme } from '../..';
11+
import { useExampleTheme } from '../../hooks/useExampleTheme';
1212

1313
export type Controls = {
1414
iconMode: AnimatedFABIconMode;

example/src/Examples/AppbarExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
} from 'react-native-paper';
1515
import { useSafeAreaInsets } from 'react-native-safe-area-context';
1616

17-
import { useExampleTheme } from '..';
1817
import { yellowA200 } from '../../../src/styles/themes/v2/colors';
18+
import { useExampleTheme } from '../hooks/useExampleTheme';
1919
import ScreenWrapper from '../ScreenWrapper';
2020

2121
type Props = {

example/src/Examples/AvatarExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { StyleSheet, View } from 'react-native';
33

44
import { Avatar, List, MD2Colors, MD3Colors } from 'react-native-paper';
55

6-
import { useExampleTheme } from '..';
6+
import { useExampleTheme } from '../hooks/useExampleTheme';
77
import ScreenWrapper from '../ScreenWrapper';
88

99
const AvatarExample = () => {

example/src/Examples/BadgeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Switch,
1212
} from 'react-native-paper';
1313

14-
import { useExampleTheme } from '..';
14+
import { useExampleTheme } from '../hooks/useExampleTheme';
1515
import ScreenWrapper from '../ScreenWrapper';
1616

1717
const BadgeExample = () => {

example/src/Examples/BannerExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
import { Banner, FAB, MD2Colors, MD3Colors } from 'react-native-paper';
1212

13-
import { useExampleTheme } from '..';
13+
import { useExampleTheme } from '../hooks/useExampleTheme';
1414
import ScreenWrapper from '../ScreenWrapper';
1515

1616
const PHOTOS = Array.from({ length: 24 }).map(

0 commit comments

Comments
 (0)