Skip to content

Commit

Permalink
Moved assets (res) to source (src) folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashu-Dubey committed Oct 23, 2022
1 parent 57dfbe1 commit e690265
Show file tree
Hide file tree
Showing 68 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ See how to setup and run for Android & iOS [here](https://reactnative.dev/docs/n

You can run it in [Expo](https://docs.expo.io) [here](https://snack.expo.io/@ashu_dubey/react-native-ui-templates) (Not handled for web yet).

![Image](res/introduction_animation/introduction_animation.png)
![Image](res/hotel/hotel_booking.png)
![Image](res/design_course/design_course.png)
![Image](res/home/custom_drawer.png)
![Image](src/assets/introduction_animation/introduction_animation.png)
![Image](src/assets/hotel/hotel_booking.png)
![Image](src/assets/design_course/design_course.png)
![Image](src/assets/home/custom_drawer.png)
2 changes: 1 addition & 1 deletion src/DrawerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Animated, {
} from 'react-native-reanimated';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from './components/MyPressable';
import { AppImages } from '../res';
import { AppImages } from './assets';

type DrawerScene = {
label: string;
Expand Down
2 changes: 1 addition & 1 deletion src/FeedbackScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useNavigation } from '@react-navigation/native';
import { DrawerNavigationProp } from '@react-navigation/drawer';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from './components/MyPressable';
import { AppImages } from '../res';
import { AppImages } from './assets';

const FeedbackScene: React.FC = () => {
const { width } = useWindowDimensions();
Expand Down
2 changes: 1 addition & 1 deletion src/HelpScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useNavigation } from '@react-navigation/native';
import { DrawerNavigationProp } from '@react-navigation/drawer';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from './components/MyPressable';
import { AppImages } from '../res';
import { AppImages } from './assets';

const HelpScene: React.FC = () => {
const { width } = useWindowDimensions();
Expand Down
2 changes: 1 addition & 1 deletion src/HomeScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { useNavigation } from '@react-navigation/native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from './components/MyPressable';
import { AppImages } from '../res';
import { AppImages } from './assets';
import { showToast } from './util/action';

const DEMOS = [
Expand Down
2 changes: 1 addition & 1 deletion src/InviteFriendScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useNavigation } from '@react-navigation/native';
import { DrawerNavigationProp } from '@react-navigation/drawer';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from './components/MyPressable';
import { AppImages } from '../res';
import { AppImages } from './assets';

const InviteFriendScene: React.FC = () => {
const { width } = useWindowDimensions();
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/design_course/CourseInfoScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useNavigation } from '@react-navigation/native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import MyPressable from '../components/MyPressable';
import { AppImages } from '../../res';
import { AppImages } from '../assets';
import Config from '../Config';

const infoHeight = 364.0;
Expand Down
4 changes: 2 additions & 2 deletions src/design_course/HomeDesignCourse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import CategoryListView from './CategoryListView';
import PopulerCourseListView from './PopulerCourseListView';
import MyPressable from '../components/MyPressable';
import { CATEGORY_LIST, POPULAR_COURSE_LIST } from './model/category';
import { AppImages } from '../../res';
import { AppImages } from '../assets';
import Config from '../Config';

interface CategoryBtn {
Expand All @@ -43,7 +43,7 @@ const CategoryButton = ({ text, selectedCat, onPress }: CategoryBtn) => (
const HomeDesignCourse: React.FC = () => {
const { width } = useWindowDimensions();
const insets = useSafeAreaInsets();
const navigation = useNavigation();
const navigation = useNavigation<any>();

const [selectedCategory, setSelectedCategory] = useState('Ui/Ux');

Expand Down
2 changes: 1 addition & 1 deletion src/design_course/model/category.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

export interface CategoryType {
id: number;
Expand Down
2 changes: 1 addition & 1 deletion src/hotel_booking/model/hotel_list_data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

export interface HotelListType {
id: number;
Expand Down
2 changes: 1 addition & 1 deletion src/introduction_animation/scenes/CareView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import { StyleSheet, Text, Animated, useWindowDimensions } from 'react-native';
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

interface Props {
animationController: React.MutableRefObject<Animated.Value>;
Expand Down
2 changes: 1 addition & 1 deletion src/introduction_animation/scenes/MoodDiaryView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import { StyleSheet, Text, Animated, useWindowDimensions } from 'react-native';
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

interface Props {
animationController: React.MutableRefObject<Animated.Value>;
Expand Down
2 changes: 1 addition & 1 deletion src/introduction_animation/scenes/RelaxView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import { StyleSheet, Text, Animated, useWindowDimensions } from 'react-native';
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

interface Props {
animationController: React.MutableRefObject<Animated.Value>;
Expand Down
2 changes: 1 addition & 1 deletion src/introduction_animation/scenes/SplashView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import MyPressable from '../../components/MyPressable';
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

interface Props {
onNextClick: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/introduction_animation/scenes/WelcomeView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import { StyleSheet, Text, Animated, useWindowDimensions } from 'react-native';
import { AppImages } from '../../../res';
import { AppImages } from '../../assets';

interface Props {
animationController: React.MutableRefObject<Animated.Value>;
Expand Down

0 comments on commit e690265

Please sign in to comment.