Skip to content

Commit 41f91dd

Browse files
committed
FAQ: Changes based on Iva's suggestions
1 parent ff3adff commit 41f91dd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

faq.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,30 @@ position: 19
99

1010
### What Android API level does NativeScript target?
1111

12-
Currently the Android runtime is built against Android API level 17; therefore APIs from higher API levels are not currently supported through JavaScript, however, the NativeScript team is [updating the Android runtime to API level 21](https://github.com/NativeScript/android-runtime/issues/39) soon.
12+
The NativeScript Android runtime is built against Android API level 17; therefore APIs from higher API levels are not supported through JavaScript. The NativeScript team is [updating the Android runtime to API level 21](https://github.com/NativeScript/android-runtime/issues/39) soon.
1313

1414
### How do I add a navigation bar to my iOS app?
1515

1616
A NavBar element is planned for NativeScript 1.0. In the meantime you can use iOS-specific code to add a navigation bar to your app. For example, the following code adds a custom navigation bar with a title:
1717

1818
```XML
19+
<!-- main-page.xml -->
1920
<Page loaded="pageLoaded"></Page>
2021
```
2122

2223
```JavaScript
24+
// main-page.js
25+
26+
// Require the NativeScript modules this page needs
2327
var applicationModule = require("application");
2428
var colorModule = require("color");
2529
var frameModule = require("ui/frame");
2630

31+
// Code to run when the page loads
2732
exports.pageLoaded = function(args) {
2833
var page = args.object;
2934

35+
// Make sure we're on iOS before configuring the navigation bar
3036
if (applicationModule.ios) {
3137
page.ios.title = "My App";
3238

0 commit comments

Comments
 (0)