Skip to content

Instantly share code, notes, and snippets.

@jnhuynh
Last active February 7, 2018 07:10
Show Gist options
  • Save jnhuynh/86693d8b485f4d335300 to your computer and use it in GitHub Desktop.
Save jnhuynh/86693d8b485f4d335300 to your computer and use it in GitHub Desktop.
React Native Directory Structure
.
├── index.ios.js
├── js
│   ├── actions
│   │   ├── ChatServerActionCreators.js
│   │   └── ChatThreadActionCreators.js
│   ├── components
│   │   ├── ChatScreen
│   │   │   ├── index.js
│   │   │   └── style.js
│   │   ├── MessageListItem
│   │   │   ├── index.js
│   │   │   └── style.js
│   │   ├── MessageSection
│   │   │   ├── index.js
│   │   │   └── style.js
│   │   ├── ThreadListItem
│   │   │   ├── index.js
│   │   │   └── style.js
│   │   └── ThreadSection
│   │       ├── index.js
│   │       └── style.js
│   ├── constants
│   │   └── ChatConstants.js
│   ├── dispatcher
│   │   └── ChatAppDispatcher.js
│   ├── models
│   │   ├── Thread.js
│   │   ├── Message.js
│   ├── stores
│   │   ├── ChatExampleData.js
│   │   ├── MessageStore.js
│   │   └── ThreadStore.js
│   └── utils
│       ├── ChatMessageUtils.js
│       └── ChatWebAPIUtils.js
├── node_modules
└── package.json
@raysmithdev
Copy link

Really nice for this. Thanks man :) Being thinking about structure too much and need to code so this was definitely a nice setup 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment