fromBundle

open fun fromBundle(bundle: Bundle): WritableMap

Convert a Bundle to a WritableMap. Supported key types in the bundle are:

  • primitive types: int, float, double, boolean
  • arrays supported by fromArray
  • lists supported by fromList
  • Bundle objects that are recursively converted to maps

Return

the converted WritableMap

Parameters

bundle

the Bundle to convert

Throws

if there are keys of unsupported types