mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

Needed to have a nice structured cookbook dir in the docs Includes: Move the data-module tests under the data dir Move the frame tests under the ui dir Rename the dialog.md file to dialogs.md Fix the web-view title Add previous_url attributes to each article for SEO Rename the style dir to styling to match the reference Fix the frame-tests path
864 B
864 B
nav-title | title | description | previous_url |
---|---|---|---|
image-source How-To | image-source | Examples for using image-source | /ApiReference/image-source/HOW-TO |
Image source
Using the image source requires the image-source module.
The pre-required imageSource
module is used throughout the following code snippets.
We also use fs module defined as follows:
Loading and saving images
Load image using resource name
This is similar to loading Bitmap from R.drawable.logo
on Android or calling [UIImage imageNamed@"logo"]
on iOS