Skip to content

Commit

Permalink
fix type navigation params list
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoclh committed Mar 8, 2021
1 parent 7bd89f8 commit b006926
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-boiler-template",
"version": "1.63.6",
"version": "1.63.7",
"description": "Clean and minimalist React Native template for a quick start with TypeScript and components",
"scripts": {
"test": "exit 0"
Expand Down
4 changes: 2 additions & 2 deletions template/src/app/features/authentication/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, {memo} from 'react';
import {View, Text} from 'react-native';
import {StackScreenProps} from '@react-navigation/stack';
import isEqual from 'react-fast-compare';
import {RootStackParamList, APP_SCREEN} from '@navigation/screenTypes';
import {AuthorizeParamsList, APP_SCREEN} from '@navigation/screenTypes';

type HomeProps = StackScreenProps<RootStackParamList, APP_SCREEN.HOME>;
type HomeProps = StackScreenProps<AuthorizeParamsList, APP_SCREEN.HOME>;

// eslint-disable-next-line no-empty-pattern
const HomeComponent = ({}: HomeProps) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import {
TouchableScale,
Wallpaper,
} from '@components';
import {APP_SCREEN, RootStackParamList} from '@navigation/screenTypes';
import {APP_SCREEN, UnAuthorizeParamsList} from '@navigation/screenTypes';
import {StackScreenProps} from '@react-navigation/stack';
import React, {memo, useCallback, useRef, useState} from 'react';
import isEqual from 'react-fast-compare';

type LoginProps = StackScreenProps<RootStackParamList, APP_SCREEN.LOGIN>;
type LoginProps = StackScreenProps<UnAuthorizeParamsList, APP_SCREEN.LOGIN>;

const LoginComponent = ({navigation}: LoginProps) => {
const _modalMode = useRef<ModalAppModeRef>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import React, {useEffect, memo} from 'react';
import Splash from 'react-native-splash-screen';
import {Wallpaper, Text, Screen, Button, Block} from '@components';
import {Block, Button, Screen, Text, Wallpaper} from '@components';
import {APP_SCREEN, UnAuthorizeParamsList} from '@navigation/screenTypes';
import {StackScreenProps} from '@react-navigation/stack';
import {RootStackParamList, APP_SCREEN} from '@navigation/screenTypes';
import React, {memo, useEffect} from 'react';
import isEqual from 'react-fast-compare';
import Splash from 'react-native-splash-screen';

type RegisterProps = StackScreenProps<RootStackParamList, APP_SCREEN.REGISTER>;
type RegisterProps = StackScreenProps<
UnAuthorizeParamsList,
APP_SCREEN.REGISTER
>;

const RegisterComponent = ({navigation}: RegisterProps) => {
useEffect(() => {
Expand Down

0 comments on commit b006926

Please sign in to comment.