Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59d282d

Browse files
committed
Fix gitbook build
1 parent 1d3914e commit 59d282d

File tree

206 files changed

+65851
-26135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+65851
-26135
lines changed

‎6-conventions-and-code-style/6.3-environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Since react-native combines native platform code with JS, you might find it hard
77
Since the JS code is being executed by the native platform, we cannot directly pass env variables like we used to in node/Webpack projects. So we found an alternative way to accomplish this.
88

99
### How to use Environment variables in RN?
10-
We created an `env.config.js` file which exports an object. The env object can contain the API base URL, environment, and even the app fixtures/mock API data, etc (we will discuss this in details in [API mocks](./6.5-axios-and-api-mocks.md) section). And on the CI (Travis in our case), we change the contents of the file depending on the build type(Dev, UAT or Prod). Sounds cool right? 🤓
10+
We created an `env.config.js` file which exports an object. The env object can contain the API base URL, environment, and even the app fixtures/mock API data, etc. And on the CI (Travis in our case), we change the contents of the file depending on the build type(Dev, UAT or Prod). Sounds cool right? 🤓
1111

1212
<div style="text-align:center">
1313
<img src="/assets/images/6/6.3/env-structure.png" style="width: 50%;display:inline-block;vertical-align: middle;margin:0" hspace="40">

‎README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,17 @@ Our knowledge is based on our experience of working with React Native apps for a
4242

4343
<h3 align='center'>Authors</h3>
4444
<center>
45-
{% GitHubContributors %}
46-
{% endGitHubContributors %}
45+
<div style="display:inline">
46+
<div style="width:100px;display:inline-block">
47+
<img src="https://avatars2.githubusercontent.com/u/7898942?s=100" width=70 height=70 />
48+
<a href="https://github.com/react-made-native-easy/book/commits?author=rgabs"><strong>Rahul Gaba</strong></a>
49+
</div>
50+
51+
<div style="width:100px;display:inline-block">
52+
<img src="https://avatars2.githubusercontent.com/u/4029423?s=100" width=70 height=70 />
53+
<a href="https://github.com/react-made-native-easy/book/commits?author=master-atul"><strong>Atul R</strong></a>
54+
</div>
55+
</div>
4756
</center>
4857

4958
<hr/>

‎SUMMARY.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
* [Introduction](README.md)
44
* [React Native Internals 📡](3-react-native-internals/3.1-react-native-internals.md)
55
* [Setting up the project 🌈](4-setting-up-the-project/4.1-installing-react-native.md)
6-
76
Start building the app 😎
8-
------
97
* [See it in action! 🎬](see-it-in-action.md)
108
* [Project Structure 🏢](5-project-structure-and-start-building-some-app/5.0-intro.md)
119
* [Customizing the project structure](5-project-structure-and-start-building-some-app/5.1-customising-the-structure.md)
@@ -56,6 +54,5 @@ Start building the app 😎
5654
<!-- * [Rewrite all Dumb components](17-migrating-to-web/17.2-rewrite-all-dumb-components.md) -->
5755
<!-- * [Reusing business logic across platforms](17-migrating-to-web/17.3-reusing-business-logic-across-platforms.md) -->
5856
<!-- * [GOTCHAS](18-Gotchas/18.0-intro.md) -->
59-
----
6057
* [References](references.md)
6158
* [The End](the-end.md)

‎book.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
"plugins": [
33
"-lunr",
44
"-search",
5-
"search-plus",
65
"disqus",
76
"expo-snack",
87
"ga",
98
"edit-link",
10-
"back-to-top-button",
11-
"githubcontributors",
129
"github-buttons"
1310
],
1411
"pdf": {
@@ -18,10 +15,6 @@
1815
"disqus": {
1916
"shortName": "reactnative-guide"
2017
},
21-
"githubcontributors": {
22-
"githubOwner": "react-made-native-easy",
23-
"githubRepository": "book"
24-
},
2518
"edit-link": {
2619
"base": "https://github.com/react-made-native-easy/book/blob/master",
2720
"label": "Edit"

‎buildInstructions.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To build
2+
3+
- Make sure you are on node v6
4+
- install gitbook-cli
5+
`npm install -g gitbook-cli@2`
6+
7+
- do `gitbook install` to install the plugins
8+
(I had to disable few older plugins since they disappeared from gitbook)
9+
10+
- do `gitbook install --gitbook=2.3.2`
11+
12+
- do `gitbook build --gitbook=2.3.2`
13+
14+
- Then do `mv _build docs` to rename the contents to docs

‎docs/.gitignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /