V1 allowed use of image names in Images.xcassets for backgroundImage and rootBackgroundImage. After V2 upgrade I see the following error.
V1 configuration:
static navigatorStyle = {
screenBackgroundImageName: 'authBackground',
}
V2
static get options() {
return {
backgroundImage: 'authBackground,
};
}
using require works
static get options() {
return {
backgroundImage: require('../../assets/images/auth-background.png'),
};
}
"react-native-navigation": "^2.0.2556",
"react-native": "^0.56.0",
iOsiPhone XThis issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
This is still an issue. It would be swell to be able to use native assets for the backgroundImage and rootBackgroundImage.
Experiencing this issue as well. According to the docs this is still supported.
Hello! Can I try to tackle this issue for the Hacktoberfest2020? If so, can you assign it to me?
@alexnaiman I've assigned you, but I don't think you have to be assigned to the issue for hacktoberfest, no?
@alexnaiman if you have any questions, join us on discord and we can discuss them. https://discord.gg/DhkZjq2
This is working for me, though I'm using the functional component style of assigning default options.
Most helpful comment
@alexnaiman I've assigned you, but I don't think you have to be assigned to the issue for hacktoberfest, no?