Skip to content

Commit

Permalink
feat: Adds Profile and Post screens
Browse files Browse the repository at this point in the history
  • Loading branch information
cem2ran committed Oct 23, 2019
1 parent 1e3dce5 commit 65c49e4
Show file tree
Hide file tree
Showing 54 changed files with 7,558 additions and 147 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.re linguist-language=OCaml
*.rei linguist-language=OCaml
*.rei linguist-language=OCaml
*.gen.tsx linguist-generated
*.bs.js linguist-generated
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ npm-debug.*
.bsb.lock
lib
.merlin
.DS_STORE
.DS_STORE

.idea
.env
.graphql_ppx_cache

yarn-error.log
7 changes: 6 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export { app as default } from "./src/App.bs.js";
//If we're running Expo in Development mode we use Storybook entry, otherwise App.
const App = __DEV__
? require('./storybook').default
: require('./src/App.bs').default

export default App
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# InstaClone

A basic Instagram (Unsplash) clone utilizing Reason React Native, React Navigation, Storybook with Apollo & genType.

Running App Story requires running Unsplash GraphQL server: `yarn server`

Remaining stories can be run without any server as the resolver are mocked locally.

| Storybook | Navigation |
| :----------------------------------------: | :--------------------------------------: |
| ![](demo/instaclone.storybook.smaller.gif) | ![](demo/instaclone.profile.smaller.gif) |
20 changes: 17 additions & 3 deletions bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
"-bs-super-errors"
],
"bs-dependencies": [
"reason-apollo",
"reason-apollo-hooks",
"reason-react",
"reason-react-native",
"reason-expo",
"@reason-react-native/navigation"
"@reason-react-native/navigation",
],
"ppx-flags": [
"graphql_ppx/ppx"
],
"sources": [
{
Expand All @@ -21,7 +26,16 @@
"suffix": ".bs.js",
"refmt": 3,
"package-specs": {
"module": "es6",
"module": "commonjs",
"in-source": true
},
"gentypeconfig": {
"language": "typescript",
"module": "es6",
"shims": {},
"debug": {
"all": false,
"basic": true
}
}
}
}
Binary file added demo/instaclone.profile.smaller.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/instaclone.storybook.smaller.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 65c49e4

Please sign in to comment.