diff --git a/README.md b/README.md index 870dbb6..9ea2583 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,25 @@ 在项目根目录中运行`npm i`安装代码需要对应依赖,再进入对应 package 运行项目 +### 目录结构 + +. +├── CHANGELOG.md +├── DEVELOP_GUIDE.md +├── README.md +├── babel.config.js +├── example // demo运行目录 +├── jest-setup.js +├── jest.config.js +├── node_modules +├── package-lock.json +├── package.json +├── scripts +├── site // 文档站点目录 +├── src // 组件库源码 +├── tsconfig.json +└── tsconfig.test.json + ### 运行命令 @@ -26,3 +45,5 @@ subject-描述 1. feat(button): 修改文案 2. fix: fixbug 3. refactor: 调整代码结构 + +### 文档地址 diff --git a/example/src/App.tsx b/example/src/App.tsx index 4b683b5..42ec7f4 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -5,9 +5,8 @@ import { NavigationContainer, useNavigation } from '@react-navigation/native'; import { createDrawerNavigator, DrawerContentScrollView, useDrawerProgress } from '@react-navigation/drawer'; import { createStackNavigator, CardStyleInterpolators } from '@react-navigation/stack'; import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated'; -import { useTheme } from '@src/theme'; +import { ThemeProvider, useTheme } from '@src/theme'; import { Text, ScrollView, View, Button } from '@src/components'; -import ThemeProvider from '@src/theme/ThemeProvider'; import { SafeAreaProvider, initialWindowMetrics, useSafeAreaInsets } from 'react-native-safe-area-context'; import { lazy, useCallback, Suspense } from 'react'; import { ListItem } from './components/ListItem'; @@ -76,6 +75,7 @@ function DrawerMenu(props: any) { /> */}