- What types of values does the source property of the Image component accept?
- Image components accept paths to local files.
- Image components accept remote image URLs.
- Image components accept paths to local files and remote image URLs.
- What should you use as a placeholder while images load?
- You should use a placeholder image that makes sense for the context where the image is used.
- You should use an ActivityIndicator component for any images on the screen that haven't loaded yet.
- The Image component automatically handles placeholders for you.
- How can you scale an image using the Image component?
- You have to make sure that only scaled images are used in the Image component.
- By setting the width and the height property, the Image component will automatically handle scaling the image for you.
- Scaling images in a mobile app is CPU intensive and should be avoided.
- Is it worth installing the react-native-vector-icons package for your app?
- Yes, this package makes thousands of icons available to your app and icons are an important tool for communicating intent to users.
- No, it's a lot of overhead and icons aren't helpful in mobile apps.