Skip to content

Commit bda8795

Browse files
author
SupriyaKalghatgi
committed
review and fixes
1 parent 5f2148f commit bda8795

81 files changed

Lines changed: 1847 additions & 500 deletions

Some content is hidden

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

‎README.md‎

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
#Introduction
2-
3-
#### Essential cross-platform UI components for React Native
4-
[NativeBase](https://nativebase.io/) is a free and open source UI component library for [React Native](https://facebook.github.io/react-native/) to build native mobile apps for iOS and Android platforms. [NativeBase](https://nativebase.io/) also supports web from version 2.4.1.
5-
6-
![Cover NativeBase](https://docs.nativebase.io/docs/assets/web-cover1.jpg)
7-
8-
9-
One of our main goal with [NativeBase](https://nativebase.io/) **2.0** is to make it easy to theme the components with very little changes to components themselves.
10-
11-
*General Syntax of NativeBase Component*
12-
13-
<pre class="line-numbers"><code class="language-jsx">import React, { Component } from 'react';
14-
import { Container, Button, Text } from 'native-base';
15-
export default class GeneralExample extends Component {
16-
render() {
17-
return (
18-
&lt;Container>
19-
&lt;Button>
20-
&lt;Text>
21-
Button
22-
&lt;/Text>
23-
&lt;/Button>
24-
&lt;/Container>
25-
);
26-
}
27-
}</code></pre>
28-
<br />
29-
30-
NativeBase on Windows depends on React Native support for Windows.<br/>
31-
NativeBase is now supported on [snack](https://snack.expo.io/)
32-
33-
**[How to get started?](/docs/GetStarted.md)**
34-
35-
<!-- **[How to migrate from v0.x to v2.x?](/docs/Migration.md)** -->
1+
{% include "/docs/introduction/README.md" %}

‎SUMMARY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Summary
22
* [NativeBase](http://nativebase.io/)
3-
* [Introduction](README.md#Introduction)
3+
* [Introduction](README.md)
44
* [Getting Started](/docs/GetStarted.md)
55
* [Components](Components.md#Components)
66
* [Anatomy](Components.md#anatomy-headref)

‎_book/Components.html‎

Lines changed: 246 additions & 170 deletions
Large diffs are not rendered by default.

‎_book/Customize.html‎

Lines changed: 20 additions & 21 deletions
Large diffs are not rendered by default.

‎_book/docs/CheatSheet.html‎

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
<li class="chapter " data-level="1.2" data-path="../">
124124

125-
<a href="../#Introduction">
125+
<a href="../">
126126

127127

128128
Introduction
@@ -1917,6 +1917,15 @@ <h3 id="Components">0.2. Components</h3>
19171917
<li>renderRow</li>
19181918
</ul>
19191919
</td>
1920+
<td>Flag indicating whether empty section headers should be rendered</td>
1921+
<td></td>
1922+
</tr>
1923+
<tr>
1924+
<td>
1925+
<ul>
1926+
<li>enableEmptySections</li>
1927+
</ul>
1928+
</td>
19201929
<td>callback that returns chunk of data as a component</td>
19211930
<td></td>
19221931
</tr>
@@ -2443,6 +2452,15 @@ <h3 id="Components">0.2. Components</h3>
24432452
<td>size of icon</td>
24442453
<td></td>
24452454
</tr>
2455+
<tr>
2456+
<td>
2457+
<ul>
2458+
<li>type</li>
2459+
</ul>
2460+
</td>
2461+
<td>Specify icon family</td>
2462+
<td></td>
2463+
</tr>
24462464

24472465

24482466

@@ -2790,10 +2808,19 @@ <h3 id="Components">0.2. Components</h3>
27902808
<tr>
27912809
<td>
27922810
<ul>
2793-
<li>headerBackButtonText</li>
2811+
<li>placeholderStyle</li>
27942812
</ul>
27952813
</td>
2796-
<td>used for custom backButton text</td>
2814+
<td>Custom style for placeholder text in iOS</td>
2815+
<td></td>
2816+
</tr>
2817+
<tr>
2818+
<td>
2819+
<ul>
2820+
<li>placeholderIconColor</li>
2821+
</ul>
2822+
</td>
2823+
<td>Set placeholder icon color in iOS</td>
27972824
<td></td>
27982825
</tr>
27992826

@@ -3137,7 +3164,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
31373164
<script>
31383165
var gitbook = gitbook || [];
31393166
gitbook.push(function() {
3140-
gitbook.page.hasChanged({"page":{"title":"CheatSheet","level":"1.11","depth":1,"next":{"title":"Compatibility","level":"1.12","depth":1,"path":"docs/Compatibility.md","ref":"docs/Compatibility.md","articles":[]},"previous":{"title":"FAQs","level":"1.10","depth":1,"path":"docs/faq/FAQs.md","ref":"docs/faq/FAQs.md","articles":[]},"dir":"ltr"},"config":{"plugins":["versions","codetabs","include-codeblock","ace","copy-code-button","edit-link","scripts","navigator","ga"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"ace":{},"scripts":{"files":["./engine.js"]},"search":{},"codetabs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"navigator":{},"copy-code-button":{},"ga":{"configuration":"auto","token":"UA-100873927-1"},"versions":{"type":"branches","gitbookConfigURL":"http://rawgit.com/GeekyAnts/native-base-docs/master/book.json","options":[{"value":"https://nativebase.io/docs/v2.0.0/","text":"v2.2.0","selected":true},{"value":"http://rawgit.com/GeekyAnts/native-base-docs/v2.0/_book/index.html","text":"v2.0.0"},{"value":"http://nativebase.io/docs/v0.5.13/","text":"v0.5.13"},{"value":"http://nativebase.io/docs/v0.5.9/","text":"v0.5.9"},{"value":"http://nativebase.io/docs/v0.5.7/","text":"v0.5.7"},{"value":"http://nativebase.io/docs/v0.5.5/","text":"v0.5.5"},{"value":"http://nativebase.io/docs/v0.5.2/","text":"v0.5.2"},{"value":"http://nativebase.io/docs/v0.5.0/","text":"v0.5.0"},{"value":"http://nativebase.io/docs/v0.4.6/","text":"v0.4.6"},{"value":"http://nativebase.io/docs/v0.3.1/","text":"v0.3.1"},{"value":"http://nativebase.io/docs/v0.3.0/","text":"v0.3.0"}]},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"ace","theme":"monokai","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/GeekyAnts/native-base-docs/tree/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NativeBase","gitbook":"*"},"file":{"path":"docs/CheatSheet.md","mtime":"2017-07-26T07:53:40.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-08-02T09:53:51.942Z"},"basePath":"..","book":{"language":""}});
3167+
gitbook.page.hasChanged({"page":{"title":"CheatSheet","level":"1.11","depth":1,"next":{"title":"Compatibility","level":"1.12","depth":1,"path":"docs/Compatibility.md","ref":"docs/Compatibility.md","articles":[]},"previous":{"title":"FAQs","level":"1.10","depth":1,"path":"docs/faq/FAQs.md","ref":"docs/faq/FAQs.md","articles":[]},"dir":"ltr"},"config":{"plugins":["versions","codetabs","include-codeblock","ace","copy-code-button","edit-link","scripts","navigator","ga","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"ace":{},"livereload":{},"scripts":{"files":["./engine.js"]},"search":{},"codetabs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"navigator":{},"copy-code-button":{},"ga":{"configuration":"auto","token":"UA-100873927-1"},"versions":{"type":"branches","gitbookConfigURL":"http://rawgit.com/GeekyAnts/native-base-docs/master/book.json","options":[{"value":"https://nativebase.io/docs/v2.0.0/","text":"v2.2.0","selected":true},{"value":"http://rawgit.com/GeekyAnts/native-base-docs/v2.0/_book/index.html","text":"v2.0.0"},{"value":"http://nativebase.io/docs/v0.5.13/","text":"v0.5.13"},{"value":"http://nativebase.io/docs/v0.5.9/","text":"v0.5.9"},{"value":"http://nativebase.io/docs/v0.5.7/","text":"v0.5.7"},{"value":"http://nativebase.io/docs/v0.5.5/","text":"v0.5.5"},{"value":"http://nativebase.io/docs/v0.5.2/","text":"v0.5.2"},{"value":"http://nativebase.io/docs/v0.5.0/","text":"v0.5.0"},{"value":"http://nativebase.io/docs/v0.4.6/","text":"v0.4.6"},{"value":"http://nativebase.io/docs/v0.3.1/","text":"v0.3.1"},{"value":"http://nativebase.io/docs/v0.3.0/","text":"v0.3.0"}]},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"ace","theme":"monokai","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/GeekyAnts/native-base-docs/tree/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NativeBase","gitbook":"*"},"file":{"path":"docs/CheatSheet.md","mtime":"2018-04-04T09:50:23.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-04T09:53:03.130Z"},"basePath":"..","book":{"language":""}});
31413168
});
31423169
</script>
31433170
</div>
@@ -3179,6 +3206,10 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
31793206

31803207

31813208

3209+
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
3210+
3211+
3212+
31823213
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
31833214

31843215

‎_book/docs/Compatibility.html‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
<li class="chapter " data-level="1.2" data-path="../">
124124

125-
<a href="../#Introduction">
125+
<a href="../">
126126

127127

128128
Introduction
@@ -1673,7 +1673,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
16731673
<script>
16741674
var gitbook = gitbook || [];
16751675
gitbook.push(function() {
1676-
gitbook.page.hasChanged({"page":{"title":"Compatibility","level":"1.12","depth":1,"next":{"title":"Examples","level":"1.13","depth":1,"path":"docs/examples/Examples.md","ref":"docs/examples/Examples.md","articles":[{"title":"Redux","level":"1.13.1","depth":2,"path":"docs/examples/ReduxCounterExample.md","ref":"docs/examples/ReduxCounterExample.md","articles":[]},{"title":"Mobx","level":"1.13.2","depth":2,"path":"docs/examples/MobxCounterExample.md","ref":"docs/examples/MobxCounterExample.md","articles":[]},{"title":"Navigation","level":"1.13.3","depth":2,"path":"docs/examples/navigation/NavigationExample.md","ref":"docs/examples/navigation/NavigationExample.md","articles":[{"title":"React Navigation","level":"1.13.3.1","depth":3,"path":"docs/examples/navigation/StackNavigationExample.md","ref":"docs/examples/navigation/StackNavigationExample.md","articles":[]},{"title":"RNRF","level":"1.13.3.2","depth":3,"path":"docs/examples/navigation/RNRFBasicExample.md","ref":"docs/examples/navigation/RNRFBasicExample.md","articles":[]}]},{"title":"Full App","level":"1.13.4","depth":2,"path":"docs/examples/GitAppExample.md","ref":"docs/examples/GitAppExample.md","articles":[]},{"title":"Redux-Form","level":"1.13.5","depth":2,"path":"docs/examples/ReduxFormExample.md","ref":"docs/examples/ReduxFormExample.md","articles":[]},{"title":"Sticky Headers","level":"1.13.6","depth":2,"path":"docs/examples/StickyHeaderExample.md","ref":"docs/examples/StickyHeaderExample.md","articles":[]},{"title":"FlatList + Sticky Headers","level":"1.13.7","depth":2,"path":"docs/examples/FlatListExample.md","ref":"docs/examples/FlatListExample.md","articles":[]}]},"previous":{"title":"CheatSheet","level":"1.11","depth":1,"path":"docs/CheatSheet.md","ref":"docs/CheatSheet.md","articles":[]},"dir":"ltr"},"config":{"plugins":["versions","codetabs","include-codeblock","ace","copy-code-button","edit-link","scripts","navigator","ga"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"ace":{},"scripts":{"files":["./engine.js"]},"search":{},"codetabs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"navigator":{},"copy-code-button":{},"ga":{"configuration":"auto","token":"UA-100873927-1"},"versions":{"type":"branches","gitbookConfigURL":"http://rawgit.com/GeekyAnts/native-base-docs/master/book.json","options":[{"value":"https://nativebase.io/docs/v2.0.0/","text":"v2.2.0","selected":true},{"value":"http://rawgit.com/GeekyAnts/native-base-docs/v2.0/_book/index.html","text":"v2.0.0"},{"value":"http://nativebase.io/docs/v0.5.13/","text":"v0.5.13"},{"value":"http://nativebase.io/docs/v0.5.9/","text":"v0.5.9"},{"value":"http://nativebase.io/docs/v0.5.7/","text":"v0.5.7"},{"value":"http://nativebase.io/docs/v0.5.5/","text":"v0.5.5"},{"value":"http://nativebase.io/docs/v0.5.2/","text":"v0.5.2"},{"value":"http://nativebase.io/docs/v0.5.0/","text":"v0.5.0"},{"value":"http://nativebase.io/docs/v0.4.6/","text":"v0.4.6"},{"value":"http://nativebase.io/docs/v0.3.1/","text":"v0.3.1"},{"value":"http://nativebase.io/docs/v0.3.0/","text":"v0.3.0"}]},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"ace","theme":"monokai","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/GeekyAnts/native-base-docs/tree/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NativeBase","gitbook":"*"},"file":{"path":"docs/Compatibility.md","mtime":"2017-07-25T08:00:00.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-08-02T09:53:51.942Z"},"basePath":"..","book":{"language":""}});
1676+
gitbook.page.hasChanged({"page":{"title":"Compatibility","level":"1.12","depth":1,"next":{"title":"Examples","level":"1.13","depth":1,"path":"docs/examples/Examples.md","ref":"docs/examples/Examples.md","articles":[{"title":"Redux","level":"1.13.1","depth":2,"path":"docs/examples/ReduxCounterExample.md","ref":"docs/examples/ReduxCounterExample.md","articles":[]},{"title":"Mobx","level":"1.13.2","depth":2,"path":"docs/examples/MobxCounterExample.md","ref":"docs/examples/MobxCounterExample.md","articles":[]},{"title":"Navigation","level":"1.13.3","depth":2,"path":"docs/examples/navigation/NavigationExample.md","ref":"docs/examples/navigation/NavigationExample.md","articles":[{"title":"React Navigation","level":"1.13.3.1","depth":3,"path":"docs/examples/navigation/StackNavigationExample.md","ref":"docs/examples/navigation/StackNavigationExample.md","articles":[]},{"title":"RNRF","level":"1.13.3.2","depth":3,"path":"docs/examples/navigation/RNRFBasicExample.md","ref":"docs/examples/navigation/RNRFBasicExample.md","articles":[]}]},{"title":"Full App","level":"1.13.4","depth":2,"path":"docs/examples/GitAppExample.md","ref":"docs/examples/GitAppExample.md","articles":[]},{"title":"Redux-Form","level":"1.13.5","depth":2,"path":"docs/examples/ReduxFormExample.md","ref":"docs/examples/ReduxFormExample.md","articles":[]},{"title":"Sticky Headers","level":"1.13.6","depth":2,"path":"docs/examples/StickyHeaderExample.md","ref":"docs/examples/StickyHeaderExample.md","articles":[]},{"title":"FlatList + Sticky Headers","level":"1.13.7","depth":2,"path":"docs/examples/FlatListExample.md","ref":"docs/examples/FlatListExample.md","articles":[]}]},"previous":{"title":"CheatSheet","level":"1.11","depth":1,"path":"docs/CheatSheet.md","ref":"docs/CheatSheet.md","articles":[]},"dir":"ltr"},"config":{"plugins":["versions","codetabs","include-codeblock","ace","copy-code-button","edit-link","scripts","navigator","ga","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"ace":{},"livereload":{},"scripts":{"files":["./engine.js"]},"search":{},"codetabs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"navigator":{},"copy-code-button":{},"ga":{"configuration":"auto","token":"UA-100873927-1"},"versions":{"type":"branches","gitbookConfigURL":"http://rawgit.com/GeekyAnts/native-base-docs/master/book.json","options":[{"value":"https://nativebase.io/docs/v2.0.0/","text":"v2.2.0","selected":true},{"value":"http://rawgit.com/GeekyAnts/native-base-docs/v2.0/_book/index.html","text":"v2.0.0"},{"value":"http://nativebase.io/docs/v0.5.13/","text":"v0.5.13"},{"value":"http://nativebase.io/docs/v0.5.9/","text":"v0.5.9"},{"value":"http://nativebase.io/docs/v0.5.7/","text":"v0.5.7"},{"value":"http://nativebase.io/docs/v0.5.5/","text":"v0.5.5"},{"value":"http://nativebase.io/docs/v0.5.2/","text":"v0.5.2"},{"value":"http://nativebase.io/docs/v0.5.0/","text":"v0.5.0"},{"value":"http://nativebase.io/docs/v0.4.6/","text":"v0.4.6"},{"value":"http://nativebase.io/docs/v0.3.1/","text":"v0.3.1"},{"value":"http://nativebase.io/docs/v0.3.0/","text":"v0.3.0"}]},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"ace","theme":"monokai","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/GeekyAnts/native-base-docs/tree/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NativeBase","gitbook":"*"},"file":{"path":"docs/Compatibility.md","mtime":"2017-07-25T08:00:00.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-04T09:53:03.130Z"},"basePath":"..","book":{"language":""}});
16771677
});
16781678
</script>
16791679
</div>
@@ -1715,6 +1715,10 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
17151715

17161716

17171717

1718+
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
1719+
1720+
1721+
17181722
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
17191723

17201724

0 commit comments

Comments
 (0)