- fixed: Make the barometer component non-accessible.
- fixed: Extra call to
handleLayout
withinBarometer
to fix edge-case for incorrect screen layout calculations.
- changed: Default to Default to
AirshipBridge<void>
instead ofAirshipBridge<unknown>
. This change may cause new TypeScript errors to appear, but it is not a breaking change - the cases were always broken, but TypeScript simply wasn't reporting the errors.
- added: Add
borderColor
andborderWidth
props to theAirshipModal
component.
- fixed: Replace deprecated
removeListener
calls.
- added: New optional
overflow
prop forAirshipModal
.
- added: Add optional shadow properties to the
AirshipModal
:shadowOffset
shadowOpacity
shadowRadius
- fixed: Make the
Airship
Flow type work like the Typescript version.
- fixed: Do not crash when calling
Airship.clear
recursively.
- fixed: Measure the screen by mounting a test component and seeing where it lands, avoiding the need for various properties to control the layout. If the status bar is translucent, or if they keyboard is
adjustPan
mode on Android, we can automatically determine that now and do the right thing. - removed:
avoidAndroidKeyboard
prop on the top-levelAirship
. - removed:
statusBarTranslucent
prop on the top-levelAirship
.
- added: Add an
Airship.clear
method, which calls any callbacks registered withbridge.on('clear')
. - added: Add a
bridge.on('result')
method to replacebridge.onResult
. - fixed: Add some missing Flow type definitions.
- fixed: Make the Typescript definitions work better with strict mode.
- deprecated:
bridge.onResult
- Fix various Flow & documentation issues from the previous release.
With this version, the demo components become an official part of the library. The old react-native-airship/demos
entry point has gone away, so you can import AirshipDropdown
, AirshipModal
, and AirshipToast
directly from react-native-airship
now.
Since the demo components are meant to be directly usable, they now accept many more properties for controlling their appearance & behavior.
The activity
property on the AirshipToast
has also gone away. See the documentation for another way to achieve this same result.
The styleOverride
property on the AirshipModal
has also gone away. Use the new appearance properties to make changes now.
- Update the readme file with a cool image.
- Fix the Flow types for compatibility with older versions.
- Port the demos to
react-native-safe-area-context
. - Add a temporary
styleOverride
prop to the modal while we figure out which customizations we want to support.
- Fix a packaging glitch that made the demos unusable.
- Initial release, extracted from edge-react-gui.