Images not displayed
See original GitHub issueNS 8.0.7 Xcode 12.4 Node 14.11.0
Migrate an app to NS 8 and none of my app images are displayed.
Code is
<Page loaded="pageLoaded" class="page" xmlns="http://www.nativescript.org/tns.xsd"> <ActionBar title="Home" class="action-bar"></ActionBar> <ScrollView> <StackLayout class="home-panel" verticalAlignment="top"> <Image src="~/images/wfsl-logo.jpg" width="100" /> <GridLayout rows="70, 70, 70, 70, 70,70" width="100%" horizontalAlignment="center"> <Button text="Monday" tap="onMondayTap" class="button" row="0" /> <Button text="Wednesday" tap="onWednesdayTap" class="button" row="1"/> <Button text="Settings" tap="onSettingsTap" class="button" row="2" /> <Button text="Help" tap="onHelpTap" class="button" row="3"/> <Button text="About" tap="onAboutTap" class="button" row="4"/> <Label id="appVersion" text="" horizontalAlignment="center" marginTop="20" fontSize="12px" row="5" /> </GridLayout> </StackLayout> </ScrollView> </Page>
Path to images
I’ve tried ~/app/images/wfsl-logo.jpg and /app/images/wfsl-logo.jpg but cannot get them to display.
XML pages are in the views folder/page name
so the page above is ~/app/views/home/home-page.xml
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Sorry yes they did. Problem solved.
@mrwrighty glad to hear it!