APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
Certain native functionalities are exposed as APIs. For example, datepicker is a component on iOS: . However, it's an API on Android: .
Dimensions provides you the screen size.
AsyncStorage provides a LocalStorage
style API for storage on the device.
InteractionManager allows you to register long-running work to be scheduled after any interactions/animations have completed.
PixelRatio class gives access to the device pixel density.
React Native provides native polyfills for the following APIs:
Flexbox layout module
ShadowPropTypesIOS
so that you can define shadows in CSS
Geolocation which follows the web spec:
Network fetch, XHR & WebSockets
Timers: setTimeout
, requestAnimationFrame
, setInterval
, etc.
Named colors in CSS