Skip to content

Commit 4752272

Browse files
committed
chore: fixing imports
1 parent 004239d commit 4752272

File tree

11 files changed

+58
-30
lines changed

11 files changed

+58
-30
lines changed

README.md

Lines changed: 55 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-native-template-typescript
1+
# :iphone: React Native Template TypeScript
22

33
[![npm downloads](https://img.shields.io/npm/dt/@hmarques98/react-native-template-typescript.svg)](https://www.npmjs.com/package/@hmarques98/react-native-template-typescript)
44
[![npm version](https://img.shields.io/npm/v/@hmarques98/react-native-template-typescript?color=44BC1C)](https://www.npmjs.com/package/@hmarques98/react-native-template-typescript)
@@ -7,7 +7,7 @@
77
<p align="center" >
88
<img
99
height="480px"
10-
src="docs/assets/preview.png"
10+
src="docs/assets/list_loaded.png"
1111
alt="Template landing screen preview"
1212
/>
1313
</p>
@@ -16,6 +16,18 @@
1616

1717
An opinionated template to bootstrap your next React Native app with all the time-wasting packages you need to have.
1818

19+
In this template is started with example fetching datas from Star Wars Api, where is showing Peoples with Name and HomeWorld and in the next screen when on pressed more details about People. In /docs/assets there are more photos.
20+
## :star: Features in this template
21+
- React Query for easy and more controlled requisitions.
22+
- CodePush integration.
23+
- Fastlane integration for automated builds.
24+
- BootSplash for faster splashScreen configurations.
25+
- Redux Toolkit for easy global state management.
26+
- StoryBook for components documentation.
27+
- React Testing Library and Detox for automated tests.
28+
- Sentry for see logs in production.
29+
- And so much more.
30+
1931
## :computer: Contributions are very welcome 🤝
2032

2133
### Let's build the best React Native template together 🚀
@@ -327,6 +339,7 @@ This template also has a [fastlane command](https://github.com/osamaq/react-nati
327339

328340
```
329341
root
342+
├── __mocks__
330343
├── __tests__
331344
├── android
332345
├── ios
@@ -336,56 +349,71 @@ root
336349
| └── rn_addons.js
337350
└── src
338351
└── components
339-
| └── Counter.tsx
340-
| └── CustomScreen.tsx
341-
| └── CustomText.tsx
342-
| └── LanguageButton.stories.tsx
343-
| └── LanguageButton.tsx
352+
| └── molecules
353+
└── Box
354+
└── Box.tsx
355+
└── index.tsx
356+
└── stories.tsx
357+
└── Button
358+
└── Button.tsx
359+
└── index.tsx
360+
└── stories.tsx
361+
└── Typography
362+
└── Typography.tsx
363+
└── index.tsx
364+
└── stories.tsx
365+
| └── organisms
366+
└── CardPeoples.tsx
344367
| └── StatusBar.tsx
345368
| └── stories.ts
346369
└── hooks
347370
| └── useCustomBackBehaviour.tsx
348-
| └── useNetworkError.tsx
349-
| └── useStartupTime.tsx
371+
| └── useInfinityQuery.tsx
350372
| └── useReactQuery.tsx
373+
| └── useOneSignal.tsx
374+
| └── useStartupTime.tsx
375+
└── interfaces
376+
| └── IPeople.ts
351377
└── localization
352378
| └── resources
353379
| | └── en.json
354380
| | └── index.ts
355381
| | └── ro.json
356382
| └── index.tsx
357-
└── modules
358-
| └── auth
359-
| | └── hooks
360-
| | | └── useKeychainBiometrics.tsx
361-
| | | └── useKeychainCredentials.tsx
362-
| | | └── useSupportedBiometry.tsx
363-
| | └── screens
364-
| | | └── index.tsx
365-
| | | └── Onboarding.tsx
366-
| | | └── ResetPassword.tsx
367-
| | └── store
368-
| | | └── index.ts
369-
| └── <your_app_modules>
383+
└── navigation
384+
| └── RootNavigation.tsx
385+
| └── Router.tsx
370386
└── navigation
371387
| ├── RootNavigation.tsx
372388
| └── Router.tsx
373389
└── screens
374-
| ├── CustomWebView.tsx
390+
| ├── CharacterDetail.tsx
375391
| ├── Home.tsx
376392
| ├── index.ts
377-
| └── NetworkError.tsx
378393
└── utils
379-
├── colors.ts
394+
├── constants.ts
380395
└── console.ts
381396
└── services
382-
├── axiosConfig.ts
397+
├── axios.ts
398+
└── store
399+
└── slices
400+
└── auth.ts
401+
└── index.ts
402+
└── index.ts
403+
└── rootReducer.ts
383404
└── styles
384405
├── colors.ts
385406
├── typography.ts
386407
├── spacing.ts
387408
├── index.ts
388-
409+
├── plop-templates
410+
└── CommonScreen.js.hbs
411+
└── Component.js.hbs
412+
└── ExportIndex.js.hbs
413+
└── Stories.js.hbs
414+
├── e2e
415+
├── assets
416+
├── fastlane
389417
```
390418

391419
## Credits

docs/assets/app_started.png

91.7 KB
Loading

docs/assets/character_detailt.png

117 KB
Loading

docs/assets/empty_list_loading.png

77.8 KB
Loading

docs/assets/list_loaded.png

198 KB
Loading

docs/assets/list_loading.png

185 KB
Loading

docs/assets/preview.png

-954 KB
Binary file not shown.

template/src/hooks/useInfiniteQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useInfiniteQuery, useQuery } from 'react-query';
2-
import axios from '@services/axiosService';
2+
import axios from '@services/axios';
33
import { log } from '@utils/console';
44
interface useInfiniteQueryProps {
55
queryName: string;

template/src/hooks/useReactQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useQuery } from 'react-query';
2-
import axios from '@services/axiosService';
2+
import axios from '@services/axios';
33
interface useReactQueryProps {
44
queryName: string;
55
path: string;

template/src/screens/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { StackNavigationProp } from '@react-navigation/stack';
1717
import { useNavigation } from '@react-navigation/native';
1818
import { log } from '@utils/console';
1919
import useInfiniteReactQuery from 'hooks/useInfiniteQuery';
20-
import axios from '@services/axiosService';
20+
import axios from '@services/axios';
2121

2222
type ProfileScreenNavigationProp = StackNavigationProp<
2323
CommonStackParamList,

0 commit comments

Comments
 (0)