Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how add new module (plop) in (stack) navigation? #232

Open
KarlsDad opened this issue May 14, 2018 · 0 comments
Open

how add new module (plop) in (stack) navigation? #232

KarlsDad opened this issue May 14, 2018 · 0 comments

Comments

@KarlsDad
Copy link

how can add a new module,

  1. npm install -g plop
  2. run plop $ plop module
  3. also fine ... ? Module name (Casing will be modified) chat ? Module name (Casing will be modified) chat [SUCCESS] add \src\modules\chat\ChatState.js [SUCCESS] add \src\modules\chat\ChatView.js [SUCCESS] add \src\modules\chat\ChatViewContainer.js [SUCCESS] modify \src\redux\reducer.js [SUCCESS] modify \src\redux\reducer.js

but how can i implement the new module to navigation?

Navgiator.js
import ChatViewContainer from '../chat/ChatViewContainer'; <------------- add
// TabNavigator is nested inside StackNavigator export const MainScreenNavigator = TabNavigator({ Counter: {screen: CounterViewContainer}, Color: {screen: ColorViewContainer}, Chat: {screen: ChatViewContainer} <------------- add

// Root navigator is a StackNavigator const AppNavigator = StackNavigator({ Home: {screen: MainScreenNavigator}, InfiniteColorStack: {screen: ColorViewContainer}, ChatStack: {screen: ChatViewContainer} <--------------- add

but nothing changed, whats wrong?

@KarlsDad KarlsDad changed the title add new module (plop) in (stack) navigation how add new module (plop) in (stack) navigation? May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant