Platform Specific Code
  • References/JavaScript/React Native/Guides

When building a cross-platform app, the need to write different code for different platforms may arise. This can always be achieved by organizing the various components in

2025-01-10 15:47:30
ListViewDataSource#getRowData()
  • References/JavaScript/React Native/Miscellaneous

getRowData(sectionIndex, rowIndex) Gets the data required to render the row.

2025-01-10 15:47:30
ToolbarAndroid#actions
  • References/JavaScript/React Native/Components: ToolbarAndroid

actions [{title: string, icon: optionalImageSource, show: enum('always', 'ifRoom', 'never'), showWithText: bool}]

2025-01-10 15:47:30
RefreshControl#tintColor
  • References/JavaScript/React Native/Components: RefreshControl

iostintColor color

2025-01-10 15:47:30
SliderIOS#maximumTrackTintColor
  • References/JavaScript/React Native/Components: SliderIOS

maximumTrackTintColor string The color used for the track to the right of the button. Overrides the default

2025-01-10 15:47:30
PixelRatio.roundToNearestPixel()
  • References/JavaScript/React Native/APIs

static roundToNearestPixel(layoutSize) Rounds a layout size (dp) to the nearest

2025-01-10 15:47:30
AsyncStorage.multiRemove()
  • References/JavaScript/React Native/APIs

static multiRemove(keys, callback?) Delete all the keys in the keys

2025-01-10 15:47:30
ActivityIndicator#color
  • References/JavaScript/React Native/Components: ActivityIndicator

color color The foreground color

2025-01-10 15:47:30
PushNotificationIOS.setApplicationIconBadgeNumber()
  • References/JavaScript/React Native/APIs

static setApplicationIconBadgeNumber(number) Sets the badge number for the

2025-01-10 15:47:30
ToolbarAndroid#overflowIcon
  • References/JavaScript/React Native/Components: ToolbarAndroid

overflowIcon optionalImageSource Sets the overflow icon.

2025-01-10 15:47:30