Skip to content

Files

Latest commit

 

History

History
74 lines (54 loc) · 1.39 KB

options-imageResource.mdx

File metadata and controls

74 lines (54 loc) · 1.39 KB
id title sidebar_label
options-imageResource
Image Resource
Image Resource

ImageResource

const options = {
  topBar: {
    leftButtons: [
        icon: require('./backButton.png')
    ]
  },
};

The following icon types are available:

Type Required Platform
ImageRequireSource No Both
string No Both
ImageSystemSource No iOS

ImageSystemSource

system

You can use platform specific system icons for iOS only.

Example:

const options = {
  topBar: {
    leftButtons: [
        icon: {
            system: 'calendar',
            fallback: require('./calendar.png')
        }
    ]
  },
};
Type Required Platform
string Yes iOS 13+

fallback

Type Required Platform
FallbackSource No iOS 13+

FallbackSource

For iOS, SF Symbols is available only for iOS 13 and later. For iOS 12 and earlier you should use a fallback icon.

ImageRequireSource

Type Required Platform
number No Both

string

Type Required Platform
number No Both