Skip to content

Commit abecff8

Browse files
committed
NewNew
1 parent b5a2c7d commit abecff8

39 files changed

Lines changed: 206 additions & 91 deletions

‎_book/COMPONENTS.html‎

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,11 +1432,11 @@ <h2 id="Header_Anatomy">2. Header_Anatomy</h2>
14321432
<h2 id="Content_Anatomy">3. Content_Anatomy</h2>
14331433
<ul>
14341434
<li>This is a NativeBase component which renders as body element of your screen.</li>
1435-
<li>Each screen can have only one <content> component and can be defined anywhere within the Container.</content></li>
1435+
<li>Each screen can have only one <code>Content</code> component and can be defined anywhere within the Container.</li>
14361436
<li>Content takes in the whole collection of React Native and NativeBase components.</li>
14371437
<li>Content provides you with stylesheet.</li>
1438-
<li>User can add custom styles while defining <content> within their app.</content></li>
1439-
<li>Replacing Component: React Native Keyboard Aware Scroll View&apos;s <keyboardawarescrollview></keyboardawarescrollview></li>
1438+
<li>User can add custom styles while defining <code>Content</code> within their app.</li>
1439+
<li>Replacing Component: React Native Keyboard Aware Scroll View&apos;s <code>KeyboardAwareScrollView</code></li>
14401440
</ul>
14411441
<p><pre class="line-numbers"><code class="language-jsx"><span class="hljs-keyword">import</span> React, { Component } <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;react&apos;</span>;
14421442
<span class="hljs-keyword">import</span> { Container, Content } <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;native-base&apos;</span>;
@@ -1482,13 +1482,13 @@ <h2 id="Footer_Anatomy">4. Footer_Anatomy</h2>
14821482
<ul>
14831483
<li>NativeBase component that renders as footer that includes your favourite apps for your screen.</li>
14841484
<li>There can be only a single Footer component into your Container.</li>
1485-
<li>To have Footer for your screen, include <footer> component within <container>.</container></footer></li>
1485+
<li>To have Footer for your screen, include <code>Footer</code> component within <code>Container</code>.</li>
14861486
<li>NativeBase gives you flexibility to define your Footer component anywhere in the bounds of Container.</li>
14871487
<li>Footer takes input as: Left, Body, Right and FooterTab as well.</li>
1488-
<li>The components those are defined within <footer> will be rendered in the same order that you define them.</footer></li>
1488+
<li>The components those are defined within <code>Footer</code> will be rendered in the same order that you define them.</li>
14891489
<li>Footer provides you with stylesheet.</li>
1490-
<li>User can add custom styles while defining <footer> within their app.</footer></li>
1491-
<li>Replacing Component: React Native <view></view></li>
1490+
<li>User can add custom styles while defining <code>Footer</code> within their app.</li>
1491+
<li>Replacing Component: React Native <code>View</code>.</li>
14921492
</ul>
14931493
<p><pre class="line-numbers"><code class="language-jsx"><span class="hljs-keyword">import</span> React, { Component } <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;react&apos;</span>;
14941494
<span class="hljs-keyword">import</span> { Container, Footer, Left, Body, Right, Button, Icon, Title } <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;native-base&apos;</span>;
@@ -2309,7 +2309,8 @@ <h4 id="Card_Showcase">7.0.13. Card Showcase</h4>
23092309
<p>Card Showcase is further customization of Card Image. It uses several different items.</p>
23102310
<ul>
23112311
<li>Begins with the Card List component, which is similar to out List Avatar.</li>
2312-
<li><code>cardBody</code> prop for images and text.</li>
2312+
<li>Make use of Left, Body and Right components to align the content of your Card header.</li>
2313+
<li>To mixup Image with other NativeBase components in a single CardItem, include the content within Body component.</li>
23132314
</ul>
23142315
<p><img src="../docs/assets/ios/components/cardShowcase.png" alt="Preview ios Card_Showcase">
23152316
<img src="../docs/assets/android/components/cardShowcase.png" alt="Preview android Card_Showcase"></p>
@@ -2441,7 +2442,7 @@ <h1 id="Deck_Swiper">Deck Swiper</h1>
24412442
&lt;Image style={{ resizeMode: &apos;cover&apos;, width: null }} source={item.image} /&gt;
24422443
&lt;/CardItem&gt;
24432444
&lt;CardItem&gt;
2444-
&lt;Icon name=&quot;ios-heart&quot; style={{ color: &apos;#ED4A6A&apos; }} /&gt;
2445+
&lt;Icon name=&quot;heart&quot; style={{ color: &apos;#ED4A6A&apos; }} /&gt;
24452446
&lt;Text&gt;{item.name}&lt;/Text&gt;
24462447
&lt;/CardItem&gt;
24472448
&lt;/Card&gt;
@@ -2502,15 +2503,15 @@ <h1 id="FABs_Default">FABs Default</h1>
25022503
style={{ backgroundColor: &apos;#5067FF&apos; }}
25032504
position=&quot;topLeft&quot;
25042505
onPress={() =&gt; this.setState({ active: !this.state.active })}&gt;
2505-
&lt;Icon name=&quot;md-share&quot; /&gt;
2506+
&lt;Icon name=&quot;share&quot; /&gt;
25062507
&lt;Button style={{ backgroundColor: &apos;#34A34F&apos; }}&gt;
25072508
&lt;Icon name=&quot;logo-whatsapp&quot; /&gt;
25082509
&lt;/Button&gt;
25092510
&lt;Button style={{ backgroundColor: &apos;#3B5998&apos; }}&gt;
25102511
&lt;Icon name=&quot;logo-facebook&quot; /&gt;
25112512
&lt;/Button&gt;
25122513
&lt;Button disabled style={{ backgroundColor: &apos;#DD5144&apos; }}&gt;
2513-
&lt;Icon name=&quot;ios-mail&quot; /&gt;
2514+
&lt;Icon name=&quot;mail&quot; /&gt;
25142515
&lt;/Button&gt;
25152516
&lt;/Fab&gt;
25162517
&lt;/Content&gt;
@@ -2685,23 +2686,23 @@ <h1 id="Footer_Tabs">Footer Tabs</h1>
26852686
<td>-</td>
26862687
<td>user-defined</td>
26872688
<td>
2688-
Represents the value in badge.
2689+
This is Button prop (applicable with FooterTab only). Value of badge to be displayed
26892690
</td>
26902691
</tr>
26912692
<tr>
2692-
<td>badgeColor</td>
2693-
<td>-</td>
2694-
<td>primary</td>
2693+
<td>badgeValueStyle</td>
2694+
<td> white </td>
2695+
<td>user-defined</td>
26952696
<td>
2696-
Background color for badge.
2697+
This is Button prop (applicable with FooterTab only). Font color of badge text
26972698
</td>
26982699
</tr>
26992700
<tr>
2700-
<td>badgeValueStyle</td>
2701-
<td>-</td>
2702-
<td>-</td>
2701+
<td>badgeColor</td>
2702+
<td> red </td>
2703+
<td> user-defined </td>
27032704
<td>
2704-
Style for value in badge.
2705+
This is Button prop (applicable with FooterTab only). Background color of badge
27052706
</td>
27062707
</tr>
27072708
</tbody>
@@ -3460,6 +3461,12 @@ <h1 id="Icon_Default">Icon Default</h1>
34603461
<td> - </td>
34613462
<td>Name of the icon for Android devices.</td>
34623463
</tr>
3464+
<tr>
3465+
<td>active</td>
3466+
<td> default </td>
3467+
<td> true fasle </td>
3468+
<td>Renders filled Icons. Note: By default it renders outline Icons.</td>
3469+
</tr>
34633470
<tr>
34643471
<td>color</td>
34653472
<td>black</td>
@@ -3895,6 +3902,27 @@ <h4 id="List_Separator">10.0.21. List Separator</h4>
38953902
);
38963903
}
38973904
}</code></pre><br></p>
3905+
<p><strong>Configuration</strong></p>
3906+
<p><table class="table table-bordered">
3907+
<thead>
3908+
<tr>
3909+
<th>Property</th>
3910+
<th>Default</th>
3911+
<th>Option</th>
3912+
<th width="50%">
3913+
Description
3914+
</th>
3915+
</tr>
3916+
</thead>
3917+
<tbody>
3918+
<tr>
3919+
<td>bordered</td>
3920+
<td> - </td>
3921+
<td> - </td>
3922+
<td> adds border to the bottom and top of the separator </td>
3923+
</tr>
3924+
</tbody>
3925+
</table><br></p>
38983926
<h1 id="Picker">Picker</h1>
38993927
<p>Renders the native picker component on iOS and Android.<br>
39003928
<em>Replacing Component: <a href="https://facebook.github.io/react-native/" target="_blank">React Native</a> <a href="https://facebook.github.io/react-native/docs/picker.html" target="_blank"><code>&lt;Picker&gt;</code></a></em>
@@ -4676,7 +4704,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
46764704
<script>
46774705
var gitbook = gitbook || [];
46784706
gitbook.push(function() {
4679-
gitbook.page.hasChanged({"page":{"title":"Components","level":"1.4","depth":1,"next":{"title":"Anatomy","level":"1.4.1","depth":2,"anchor":"#Anatomy_Default","path":"COMPONENTS.md","ref":"COMPONENTS.md#Anatomy_Default","articles":[]},"previous":{"title":"Getting Started","level":"1.3","depth":1,"anchor":"#Quick_Setup","path":"docs/GetStarted.md","ref":"docs/GetStarted.md#Quick_Setup","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-96833420-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":"latest"},{"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":"COMPONENTS.md","mtime":"2017-04-11T05:57:38.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-18T09:52:23.720Z"},"basePath":".","book":{"language":""}});
4707+
gitbook.page.hasChanged({"page":{"title":"Components","level":"1.4","depth":1,"next":{"title":"Anatomy","level":"1.4.1","depth":2,"anchor":"#Anatomy_Default","path":"COMPONENTS.md","ref":"COMPONENTS.md#Anatomy_Default","articles":[]},"previous":{"title":"Getting Started","level":"1.3","depth":1,"anchor":"#Quick_Setup","path":"docs/GetStarted.md","ref":"docs/GetStarted.md#Quick_Setup","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-96833420-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":"latest"},{"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":"COMPONENTS.md","mtime":"2017-04-11T05:57:38.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-20T07:59:53.987Z"},"basePath":".","book":{"language":""}});
46804708
});
46814709
</script>
46824710
</div>

0 commit comments

Comments
 (0)