You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3id="customizing-the-status-bar">Customizing the status bar</h3>
1525
+
<p>Talk about status bars.</p>
1526
+
<h4class="exercise-start">
1527
+
<b>Exercise</b>: ???
1528
+
</h4>
1529
+
1530
+
<p>Open <code>app.main.ts</code> and replace the contents of the file with the following code:</p>
1531
+
<pre><codeclass="lang-TypeScript">import {nativeScriptBootstrap} from "nativescript-angular/application";
1532
+
import {AppComponent} from "./app.component";
1533
+
import {setStatusBarColors} from "./utils/status-bar-util";
1534
+
1535
+
setStatusBarColors();
1536
+
nativeScriptBootstrap(AppComponent);
1537
+
</code></pre>
1538
+
<p>Next, open <code>app/platform.ios.css</code> and paste in the following code:</p>
1539
+
<pre><codeclass="lang-CSS">Page {
1540
+
margin-top: -20;
1541
+
}
1542
+
</code></pre>
1543
+
<divclass="exercise-end"></div>
1544
+
1545
+
<p>Talk about what just happened.</p>
1546
+
<p>TODO: Insert images</p>
1547
+
<p>And... that's it! You've created a functional, cross-platform, backend-driven app to manage your grocery list. In the process you've created a unique UI for Android and iOS, leveraged NativeScript plugins and npm modules, learned how to log in and register, managed backend services, created a list with add and delete functionality, and more. </p>
1548
+
<p>Congratulations! Feel free to <ahref="https://twitter.com/intent/tweet?text=I%20just%20built%20an%20iOS%20and%20Android%20app%20using%20@NativeScript%20%F0%9F%8E%89.%20You%20can%20too!%20http://docs.nativescript.org/start/getting-started%20%23opensource">share your accomplishment on Twitter</a> or <ahref="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdocs.nativescript.org%2Fstart%2Fgetting-started&p%5B">Facebook</a> to impress your friends 😀.</p>
1549
+
<blockquote>
1550
+
<p><strong>TIP</strong>:</p>
1551
+
<ul>
1552
+
<li>If you're curious about how NativeScript makes it possible to directly invoke iOS and Android APIs, you can read about <ahref="http://developer.telerik.com/featured/nativescript-works/">“How NativeScript Works”</a> on our blog.</li>
1553
+
<li>Remember that the <ahref="https://github.com/NativeScript/sample-Groceries/tree/angular-end">Groceries app's “angular-end” branch</a> has the final state of this tutorial. Feel free to refer back to it at any time.</li>
Next, open `app/platform.ios.css` and paste in the following code:
141
+
142
+
```CSS
143
+
Page {
144
+
margin-top: -20;
145
+
}
146
+
```
147
+
148
+
<divclass="exercise-end"></div>
149
+
150
+
Talk about what just happened.
151
+
152
+
TODO: Insert images
153
+
154
+
And... that's it! You've created a functional, cross-platform, backend-driven app to manage your grocery list. In the process you've created a unique UI for Android and iOS, leveraged NativeScript plugins and npm modules, learned how to log in and register, managed backend services, created a list with add and delete functionality, and more.
155
+
156
+
Congratulations! Feel free to [share your accomplishment on Twitter](https://twitter.com/intent/tweet?text=I%20just%20built%20an%20iOS%20and%20Android%20app%20using%20@NativeScript%20%F0%9F%8E%89.%20You%20can%20too!%20http://docs.nativescript.org/start/getting-started%20%23opensource) or [Facebook](https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdocs.nativescript.org%2Fstart%2Fgetting-started&p%5B) to impress your friends 😀.
157
+
158
+
> **TIP**:
159
+
> * If you're curious about how NativeScript makes it possible to directly invoke iOS and Android APIs, you can read about [“How NativeScript Works”](http://developer.telerik.com/featured/nativescript-works/) on our blog.
160
+
> * Remember that the [Groceries app's “angular-end” branch](https://github.com/NativeScript/sample-Groceries/tree/angular-end) has the final state of this tutorial. Feel free to refer back to it at any time.
0 commit comments