Releases: wix/react-native-ui-lib
6.21.0
π Features
β’ Create an imperative API for TabController for setting tab imperatively (#2197)
β’ ActionSheet - allow overriding Dialog's props (#2211)
π§ Fixes
β’ Picker - fix setComponentTheme support (#2212)
β’ Fixed search functionality, search logo appearance (#2208)
β’ ChipsInput - handle backspace with no chips (#2222)
β’ AnimatedImage - move from LayoutAnimation to AnimationStyle (#2223)
β’ Avatar - handle SVG image (fix Android crash and red screen) (#2224)
β’ SortableList - fix issue with flaky sorting when dragging fast + add scale to props + support a gesture-handler version in Incubator.TextField (#2217)
β’ Fixed demo app dark mode (#2209)
β’ Fix demo app colors for dark mode (#2229)
β’ Modal.TopBar - add key to buttons (#2237)
β’ Badge - update default background color (#2241)
β’ StackAggregator - fix children update. (#2103)
β’ Fix typing issue for standalone components (#2210)
β’ added useColorScheme() hook to trigger a change when toggling appearance. (#2234)
βοΈ Maintenance & Infra
β’ Changed the demo screen app according to the new design. (#2174)
β’ Update blue50 color (#2213)
β’ Change the Incubator.Dialog to use hooks, fixes issues with size given in percentage and not numbers (#2116)
β’ Incubator.TransitionView - remove (move hook to Incubator.Dialog) (#2228)
β’ Drawer - delay actions render to reduce component loading time (#2201)
β’ Added listKey prop to FlatList of WheelPicker component (#2215)
β’ Optimize use of asBaseComponent in Picker and TextField (#2200)
6.20.0
π Features
β’ SortableGridList - added RTL support (#2198)
β’ View - make component slightly faster when not using reanimated prop (#2184)
β’ TouchableOpacity - support passing customValue to onPressIn and onPressOut functions. (#2164)
π§ Fixes
β’ Image - fix resize mode bug on android (#2150)
β’ WheelPicker - optionalDependencies error should only show on usage (#2132)
β’ TouchableOpacity - add missing bg modifiers (#2160)
β’ Image - fix potential Android crash related to changing views while animating (send useBackgroundContainer) (#2171)
β’ Avatar - fix customRibbon prop (#2173)
β’ ChipsInput - field get trimmed when inserting more than 1 line of chips. (#2183)
β’ TextField - fix initial animation state of floating placeholder (#2196)
β’ TextField - memoize inner components' style to avoid redundant renders (#2170)
β’ Timeline - fix example url (#2172) (#2162)
β’ TouchableOpacity - Avoid redundant setState (#2177)
β’ ColorPalette - fix scrolling and extra renders (#2179)
π‘ Deprecations & Migrations
β’ Migrate PropTypes imports to deprecated-react-native-prop-types package - This allow using RN0.69 (#2156)
βοΈ Maintenance & Infra
β’ Update dark mode colors and tokens (#2193)
β’ Avatar - change to function component (performance) (#2191)
β’ SkeletonView - small changes that should improve performance (#2153)
β’ AnimatedImage - fix functionality and improve performance (#2157)
β’ Remove asBaseComponent from ColorSwatch, ColorPalette and ColorPicker (#2155)
β’ Button perf improvements (#2169)
β’ Setup Intl Polyfills to support Intl with hermes engine in our demo app (#2185)
β’ npmignore - add docs eslint and tests (#2192)
β’ Improve Icon perf - Ignore modifiers that not relevant to icon (#2180)
6.19.0
π Features
β’ Upgrade to RN68 (#2041)
π§ Fixes
β’ Use the new react-native-gesture-handler activateAfterLongPress to fix drag not always working on Android - REQUIRES VERSION 2.5.0 of react-native-gesture-handler (#2110)
β’ SortableGridList - fix issue with flaky sorting when dragging an item too fast (#2118)
β’ Picker - fix minor issues with fieldType - support changing label style for "filter" type and override trailingAccessory (#2124)
β’ Hint - fix tokens (#2122)
β’ Picker - handle internal undefined ref when user passes custom renderPicker (#2137)
β’ Picker - support useWheelPicker prop in order to render a wheel picker component (#2100)
β’ ColorSwatch - Improve performance by adding accessibilityInfo only if the accessibility mode is on (#2154)
β’ Drawer - remove duplicate testID used on the second element (#2130)
β’ Fix crash AssertNotNull (#2148)
π‘ Deprecations & Migrations
β’ Keyboard.KeyboardAccessoryView - start prop deprecation for 'iOSScrollBehavior' (#2102)
βοΈ Maintenance & Infra
β’ Improve modifiers' performance (#2136)
β’ asBaseComponent - add support for passing options for optimizations (#2141)
β’ Pass modifiersOptions to atom components (Text, Image, TouchableOpacity) to optimize performance (#2142)
β’ Optimize modifiers (#2143)
β’ Create infra for useModifiers and useThemeProps hooks (#2145)
β’ View - convert to a function component to reduce render hierarchy (#2146)
β’ Set perf tests infrastructure with reassure (#2151)
β’ asBaseComponent - apply ThemeManager ThemeContext (#2152)
β’ Move GridList listPadding logic to useGridLayout hook to share it with SortableGridList (#2117)
β’ Design Tokens renaming (#2123)
β’ PanView refactor (infra) (#2088)
β’ TransitionView refactor (infra) (#2089)
β’ Add native design tokens to iOS (#2131)
β’ Add Profiler (#2144)
β’ Fix Profiler's export (#2149)
β’ Implement the new demo app structure (#2133)
6.18.0
π’ The new version will require [email protected] for our SortableList and SortableGridList components
π Features
β’ Slider - adding range slider functionality (#2084)
β’ Support Picker fieldType for different picker layouts. form (default), filter and settings (#2054)
β’ ExpandableSection - add expanded to the accessibilityState (#2073)
β’ Colors.colorStringValue - support null (#2078)
π§ Fixes
β’ Incubator.TextField - fix initial validity (#2096)
β’ Fix Incubator.WheelPicker alignments (#2082)
β’ Fixed Stepper documentation. (#2104)
βοΈ Maintenance & Infra
β’ Update demo app to use react-native-gesture-handler to 2.5.0 (#2108)
β’ Set default color for Text component to be $textDefault (#2080)
β’ Design Tokens - update colors (#2085)
6.17.0
π Features
β’ New SortableList component! (#1958 & #2057)
β’ Picker.Item - expose isItemDisabled info in renderItem callback (#2070)
π§ Fixes
β’ KeyboardAwareScrollView - fix exports (#2064)
βοΈ Maintenance & Infra
β’ Migrate DateTimePicker to a function component (#2050)
β’ Refector component drivers and add a new component drivers (#2066)
β’ Native lib - bumping version to 3.0.8 (#2065)
6.16.0
π Whatβs New?
β’ Timeline - new component. (#2027)
π Features
β’ Allow to call isValid on TextField ref to check if it's valid without triggering field validation (#2049)
β’ Small performance improvement in TabController transitions (#2039)
β’ Dialog (old) - expose static directions (#2060)
π§ Fixes
β’ KeyboardAccessoryView - fix addBottomView not working (#2045)
β’ Fix onChange type of DateTimePicker (#2056)
β’ Fix Modal backgroundColor (#2058)
β’ Carousel - fix initial page (#2059)
βοΈ Maintenance & Infra
β’ Docs - fix broken links, 10x to @ibrahim-mousa ! (#2052)
β’ Fix design tokens in Picker components (#2036)
6.15.0
π Features
β’ Breaking: Support dynamic data in SortableGridList. This requires to pass id prop for each item (#2020)
β’ TabController - allow sending 'faderProps' (#2008)
β’ Modal.TopBar - Support multiple buttons (#2011)
β’ KeyboardTrackingView - add 'bottomViewColor' prop (#2013)
β’ KeyboardAvoidingView - Modal support (#2019)
β’ Allows to pass in faderProps to Incubator.WheelPicker and forward them to the <Fader /> component (#1947)
β’ Avatar - allow the override of 'testID' in Badge (#2035)
β’ Design Tokens - Badge (#2024)
β’ Design Tokens - ColorSwatch (#2029)
β’ Design Tokens - Wizard (#2026)
β’ Update tokens by the guidelines (#2032)
β’ Update icon - button color to design tokens (#2031)
β’ Slider - disabled border color - design tokens (#2033)
π§ Fixes
β’ Fix TS errors that started after @types/react v18 (#2001)
β’ Fix Incubator TextField placeholder's disabled color (when floating is also disabled) (#2003)
β’ Fix TabBar backgroundColor (#2014)
β’ Fix issue with centering TextField component (#2018)
β’ Fix error with Picker dialog when passing 'useNativePicker' (#2030)
β’ Picker - multi select - fix behavior when the value is changed by user (#2010)
β’ Carousel - fix initial page offset (contentOffset) (#1991)
β’ SegmentedControl - handle 'onLayout' being called twice (#2028)
βοΈ Maintenance & Infra
β’ Docs - Removing "extendsLink" to uilib's components (#2006)
β’ Fix keyboard docs (#2009)
β’ Fix docs broken links (#2012)
β’ Refactor DateTimePicker expandable overlay (#1995)
β’ Refactor MaskedInput component, remove legacy TextField usage (#1976)
β’ Upgrade 'reanimated' and 'gesture-handler' to latest versions in our demo app (#1977)
β’ Add error support to LogService (#2025)
β’ Remove all generated types files (#2040)
β’ eslint - function deprecation - fix usage from source (#2015)
6.14.0
π Features
β’ Support a config file for setting initial configuration for uilib (#1969)
β’ Support passing custom loaderElement to Toast component (#1971)
β’ TouchableOpacity - Expose activeScale prop and enable useNative by default when using it (#1997)
β’ Skeleton - Expose 'shimmerStyle' prop. (#1950)
β’ Button - support paddings modifier (#1989)
β’ Expose new imperative methods on picker component to allow opening expandable modal (openExpandable, closeExpandable, toggleExpandable) (#1988)
β’ Support using RN PlatformColor API for loaded design tokens (#1939)
β’ Keyboard components - add docs (#1984)
π§ Fixes
β’ TabController - support safe area (useSafeArea) and constant indicator width (indicatorWidth), Fixes #1746 (#1923)
β’ Image - fix support for size props (width, height) on Android (#1987)
β’ Fix TextField jumping issue when there's no label or floating placeholder and the validation message positioned at top (#1990)
β’ Fix alignments for RadioButton and add contentOnLeft prop (#1999)
β’ Fix usages of PlatformColor in TabController TabBaritem (#1955)
β’ Fix interpolateColor bug in Incubator.WheelPicker (#1979)
β’ Fix margin modifiers for the basic skeleton (#1983)
β’ Fix how we handle platform color strings values (#1960)
β’ KeyboardAccessoryViewProps - Fix 'onItemSelected' params for types (#1975)
β’ Skeleton - fix type related bugs (#1998)
β’ Don't enable scroll if content is less than 1 pixel than it container (#1972)
βοΈ Maintenance & Infra
β’ Remove babel plugin responsible for transforming TS types to React prop types. (#1970)
β’ Babel main index file to support components lazy loading (#1980)
β’ Cleanup old script files and packagejson scripts commands (#1986)
β’ Temp solution for fixing TextFieldMigrator static members (#1951)
β’ Carousel, GridListItem - to design tokens (#1949)
β’ Update outline design tokens (#1959)
β’ Fader - move to design tokens (#1954)
β’ TabController - design tokens - fixes (#1935)
β’ Dividers - move to design tokens (#1964)
β’ ProgressBar - move to design tokens (#1962)
β’ Update divider and icon tokens (#1965)
β’ Migrate button components to design tokens (#1985)
6.13.0
π Features
β’ New GridList component based on old GridView features (#1914)
β’ New SortableGridList component! (#1918)
π§ Fixes
β’ Fix issue with floating placeholder on Android with multiline TextField (#1924)
β’ Merge schemes in loadSchemes method (#1929)
β’ TabController - Fix how we handle dynamic tab bar items (#1932)
β’ Fix scrolling long lists in Picker (#1944)
βοΈ Maintenance & Infra
β’ Complete TS migration (#1927)
β’ Fix export of components that were already migrated to TS (#1926)
β’ Centralized all textfield types (#1933)
β’ DesignTokens - new keys. (#1936)
β’ Export DesignTokens and DesignTokensDM (#1931)
β’ Migrate Badge to design tokens (#1922)
β’ Migrate Checkbox to design tokens (#1920)
β’ Migrate RadioButton to design tokens (#1921)
β’ Migrate Card component to designTokens (#1919)
β’ Migrate Avatar to design tokens (#1917)
β’ Migrate FloatingButton and exampleScreenPresenter to designTokens (#1934)
β’ Migrate Chip to designTokens (#1937)
β’ Migrate Dialog to design tokens (#1938)
β’ Migrate Hint and Toast to design tokens (#1940)
β’ Migrate Incubator ChipsList screen to design tokens (#1941)
β’ Migrate Pickers to design tokens (#1942)
β’ Migrate Slider and Stepper to design tokens (#1943)
6.12.0
π Features
β’ Picker (and ExpandableOverlay) - support onPress (#1876)
β’ TabController.TabPage - support lazyLoadTime (useful for loading heavy pages) (#1910)
β’ Assets - adding 'getAssetByPath' method (#1892)
β’ Picker - support adding safe area to Picker modal content by passing useSafeArea prop (useful for Expo users) (#1899)
β’ SkeletonView - support passing colors (#1905)
β’ WheelPicker - support separatorsStyle (#1906)
π§ Fixes
β’ Icon- fix tintColor type (#1884)
β’ GridView - fix error thrown when passing passing lastItemLabel but not lastItemOverlayColor. Fix issue #1879. (#1900)
β’ SvgImage - add missing optional chaining. Fix issue #1809. (#1902)
β’ SvgImage - remove 'tintColor' to fix Android crash (#1903)
β’ Picker - forget search on cancel. Fix issue #1880. (#1908)
β’ Migrate callback refs to object, to resolve TS errors (#1912)
β’ Hint - fix container position for appium test (#1891)
β’ TabBar - fix the fader color in dark mode (#1867)
βοΈ Maintenance & Infra
β’ Picker - spread others props to TextField instead of extracting manually (#1895)
β’ Dark mode - restrict for dev only until releasing full support (#1887)
β’ Colors lint rule - handle undefined context.options[0] (#1915)
β’ Refactor Picker component and convert to TS (#1870)
β’ Migrate example PickerScreen to TS (#1888)
β’ Design Tokens - add backgroundInverted (#1909)
β’ Reverse color palettes in dark mode (#1893)
β’ Keyboard components - cleanup. (#1913)
β’ eslint-plugin-uilib - no-hard-coded-colors allow null (#1886)
β’ StandWithUkraine - add benner (#1904)