It was a regression since 1.10.0 version. PlatformColor is not available on web and it will throw exception, because KeyboardToolbar is exported from index file and will be evaluated as soon as something gets imported from the package (i. e. KeyboardProvider).
To fix the problem I created two files: colors.ts (all platforms excluding mobile) and colors.native.ts (for mobile).
📢 Changelog
JS
created two files: colors.ts (all platforms excluding mobile) and colors.native.ts (for mobile)
moved types to common types file;
restructed imports to look into types file instead colors;
🤔 How Has This Been Tested?
Tested on web project.
📸 Screenshots (if appropriate):
📝 Checklist
[x] CI successfully passed
[x] I added new mocks and corresponding unit-tests if library API was changed
📜 Description
Fixed a crash on web.
💡 Motivation and Context
It was a regression since
1.10.0
version.PlatformColor
is not available onweb
and it will throw exception, becauseKeyboardToolbar
is exported fromindex
file and will be evaluated as soon as something gets imported from the package (i. e.KeyboardProvider
).To fix the problem I created two files:
colors.ts
(all platforms excluding mobile) andcolors.native.ts
(for mobile).📢 Changelog
JS
colors.ts
(all platforms excluding mobile) andcolors.native.ts
(for mobile)types
file;types
file insteadcolors
;🤔 How Has This Been Tested?
Tested on web project.
📸 Screenshots (if appropriate):
📝 Checklist