Skip to content

Commit 334d264

Browse files
prsvicInbal-TishM-i-k-e-ladids1221ethanshar
authored
Update from original (#1)
* Picker - remove commented out code related to 'renderNativePicker' deprecated prop * Incubator.Dialog - fix RN Modal native calls on RN71 (wix#2573) * CharCounter now working with emojis (16-bit code) (wix#2570) * CharCounter now working with emojis (16-bit code) * Fixed review notes * SortableList - adding important note * fix wheelpicker in android (wix#2558) * fix wheelpicker in android * Removed initialNumToRender, removed style * removed itemLength variable * opt-out * added flatListProps to wheelPicker.api * added note to the api.json file * refactor the nore * fixed note * minor fix * Align LogService with console (wix#2577) Allow sending multiple params and allow (any) objects * Incubator.Dialog - fix test after RN71 bug fix (wix#2575) * Incubator.Dialog - fix test after RN71 bug fix * Forgot this * Replacing 'react-native-text-size' with wix fork (wix#2542) * Replacing 'react-native-text-size' with wix fork * fix version * Enable TS check on demo files and fix all errors (wix#2585) * Enable TS check on demo files and fix all errors * Code review fixes * Add space - test commit * Remove space * Revert changes in margin modifiers typings * SortableGridList tests (wix#2586) * Upgrade reanimated to 2.17 (wix#2587) * HintsScreen - allow configuration (wix#2590) * Move to reanimated 3 (wix#2593) * Move to reanimated 3 * Improve wording * FloatingPlaceHolder animation fix (wix#2591) * Picker - fix listProps type to be Partial (wix#2596) * Add setBreakpoints and getPageMargins (wix#2576) * Slider - adding 'migrate' prop to allow using Incubator.Silder (wix#2592) * GradientSlider - adding 'migrate' prop to allow using Incubator Silder instead of old implementation * fix lint and ts * Slider - add the 'migrate' prop to use Incubator.Slider * Incubator.Slider - fix how we apply 'tumbTintColor' to match old Slider * Demo screen - add the 'migrate' prop * remove duplicate prop declaretion * comments * adding prop to api json * pr comments fix * example margins * removing migrate from old screen --------- Co-authored-by: M-i-k-e-l <michaelle@wix.com> * iOS - change bundle id and set min deployment to iOS 13.0 (wix#2597) * iOS - set min deployment to iOS 13.0 * Demo - change bundle id to allow running on iOS device * DateTimePicket - add validate (wix#2601) * Feat/ Support subtitle in Modal.TopBar (wix#2594) * Support subtitle in Modal.TopBar * bodySmall * Add contribution link in the our main readme file * Incubator.Slider - fix onValueChange throttle (wix#2598) ColorPicker - add 'migrate' prop to use new SliderImplementation * Calendar demo screen - move items load to componentDidMount * Feat/ SortableList - add ItemMargin prop (wix#2561) * add ItemMargin prop * move height calculation * renaming * Prettify --------- Co-authored-by: M-i-k-e-l <michaelle@wix.com> * DateTimePicker - fix TextField migration related TS errors (wix#2604) * TextField and Switch/ forward id prop (wix#2608) * TextField: forward containerId prop * code-review * code-review * Calendar - Day - memoize everything * Fix the Wizard.Step style according to the guidelines (wix#2609) * Fix the Wizard.Step style according to the guidelines * changed bottom divider color * Release notes script - fix and improve (wix#2605) * Release notes script - fix and improve * Move logic to functions * Move silentPRs * Oops * Error in red + align a little to private * Support input params * Rename to Additional info (and add to PR template) + improve error message * Small fix * getItemIndex - improve comparison by not using isSameMonth tool * Calendar getItemIndex - revert fix * Calendar - getItemIndex - fix * Fix how we handle style in our Svg image component for web (wix#2612) * Fix how we handle style in our Svg image component for web * fix how we clone style object * GridView and SortableGridView - support tablet and other fixes (wix#2611) * GridView and SortableGridView - support tablet and other fixes * Cannot warn since we're already using this internally without setting * Include TouchableOpacityProps in SwitchProps (wix#2613) * Improving date utils (wix#2610) * Improving date utils * replacing function * revert function change * Moving 'inactive' day logic from Week to Day * Header - addMonths - improve flow * Header - convert to dateObject only for staticHeader * pr comments * Support passing labelProps to TabController item (wix#2615) * Incubator.Slider - fix types (wix#2616) * WheelPicker - Android - fix missing values when initialValue is sent (wix#2618) * Width and height props added to Icon, passed only in case of svg icon (wix#2583) * Width and height props added to Icon, passed only in case of svg icon * fixed review notes * passing iconSiez to svg image > The code looks good, you can merge if you've tested it (on both platforms) * fix: setNativeProps not supported on web (wix#2620) * Incubator.TextField - fix context menu not showing in centered and empty input (wix#2617) * Comment some code in calendar * Infra/ set infra for users recordings (wix#2437) * set recorder infra * update snapshots * remove default recorderTag * fix priority * add fs support to more components * update toast + api * fix merge * fix snapshots * unmask TextField label, floatingPlaceholder and charCounter * review fixes * add RecorderProps type * prettify * change to interface * formatting * move recorder typings to typings directory * fix chip api * IncubatorDialog - add topAccessory (wix#2621) * fix recorder typings (wix#2624) * export RecorderProps * fix export * Picker update items when children is changed (wix#2599) * Picker update items when children is changed * Code refactor * update api.json file * fixed review notes * refactor renderItem * items type update * Infra/test kit add props (wix#2619) * testkit - add props generics * Fix some TS errors and accessibility bugs * DateTimePicker - start deprecation of moment props (wix#2625) * feat: add prop onValidateFailed to TextField (wix#2626) * feat: add prop onValidateFailed to TextField * code-review * Fix prReleaseNotesCommon file type * Fixed TabBar scroll when there is selected index (wix#2630) * Incubator.TextField - expose retainValidationSpace (wix#2631) * Add "light-date" to demo's dependencies * Incubator.Slider - fix gap not equal on both max and min ends (wix#2634) * SegmentedControl - onChangeIndex should react to changes (wix#2637) * ExpandableOverlay - add migrateDialog (wix#2635) * textField centerd style dependes on fieldState.value * TextField inputStyle hasValue refactor * webDemo react-native-gesture-handler version upgrade (wix#2647) * ColorPicker - small fixes (wix#2650) * webDemo reanimated version upgrade to 3 (wix#2649) * NumberInput - fix design (MaskedInput look) (wix#2645) * NumberInput - fix design (MaskedInput look) * Fix some types and the API * Remove getInitialData and parsePastedData * Remove Clipboard dependency * Remove decimal separator from input (not from initial) * Fix (most) tests and package.json * Remove unused prop * Support validateOnBlur * Add textStyle * Add factor * Fix * Add Incubator.Slider driver (wix#2629) * Feat/color picker add full color to result (wix#2651) * ColorPicker - small fixes * ColorSwatch - refactor result * Add hexString * Rename to value * Rename to value 2 * Rename to ColorInfo * Infra/ remove useCustomTheme leftovers (wix#2666) * feat: [MAW-257] svgImage support tintColor on web (wix#2667) * feat: [MAW-257] svgImage support tintColor on web * use StyleSheet.flatten * Picker fix for validateForm (wix#2661) * NumberInput - fix editable (wix#2664) * Picker example for the webDemo (wix#2622) * Picker exmaple for the webDemo * new picker dialog example * Fix svg example * fixed review comments --------- Co-authored-by: lidord-wix <lidord@wix.com> * testkit - new iteration (wix#2655) * testkit - new iteration * Minor improvements * Add DEFAULT_LIST_ITEM_HEIGHT and SortableListDriver * Flatten actions * NumberInput - support focus (wix#2671) * NumberInput - support focus * Add focus color and fix screen onBlur * feat/enhance text highlight string (wix#2663) * extended the `Text` component `highlightString` prop, to allow it to also receive a `HighlightStringProps` object (or an array of such objects) that enables the user to handle a highlight string `onPress` event, provide a style per highlight string and give it a `testID` for testing * fix lint warning * fix docs * review fixes * Scheme - fix color changing (wix#2607) * Scheme - fix flickering * Update src/commons/asBaseComponent.tsx Co-authored-by: Ethan Sharabi <1780255+ethanshar@users.noreply.github.com> --------- Co-authored-by: Ethan Sharabi <1780255+ethanshar@users.noreply.github.com> * Text - default alignment (wix#2670) * Text - removing default text alignment (set to left) to allow children to get parent alignment (issue is on iOS only) * update snapshot tests - Button, AvatarScreen * Replacing default textAlign with writingDirection to fix rtl * Adding writingDirectionTypes and updating snapshot tests * adding comment * ExpandableOverlay - fix dialog props (wix#2675) * Picker migrate Dialog (wix#2657) * Picker migrate Dialog * exported close expandable function * removed dialogProps prop from types file * added bak the native picker example * fixed the ts error on ExpandableOverlay dialogProps in Picker. (wix#2677) * fixed the ts error on ExpandableOverlay dailogProps in Picker. * removed the migrateDialog prop * declare other global typings (wix#2678) * declare other global typings * Cleanup old typings * Create common typings and fix import paths * Remove old typings folder * Remove measureme typings * Move fsTagName global interface to recorderType file * fix: Picker label not updating when items prop changes (wix#2682) * change margin to padding (wix#2683) * ScrollBar - fix scrolling inside Dialog on Android (wix#2695) * use ScrollView and FlatList from gesture-handler * formatting * Android build - fix kotlin version * Performance - remove keys, simplify isSameDay + prettify * Performance - simplify isSameMonth + add some types + prettify * Remove logs from tests * Week - reducing lodash import * Removing isToday() tool * fix bg logic * Performance - isPastDate * Performance - isPastDate - revert * Header - adding throttle to arrow press * Refactor Day component to not use animated styles (wix#2698) * Refactor Day component to not use animated styles * Remove unnecessary null check * Calendar - fix extra space at the bottom * Fix initialization of calendar items to not be called more than once * Enable Calendar agenda in example screen * Fix tests' TS * Header - fix non-static header title * Update calendars mocks * Agenda - refactor * Header - fix initial title * View - add reanimated props for layout animation (wix#2694) * No static locale infra (wix#2684) * CalendarItem - fix default height * Demo - adding RTL screen (wix#2668) * Text - revert Android alignment (wix#2701) * Revert "No static locale infra (wix#2684)" (wix#2702) This reverts commit 295e12e. * ColorPicker - allow theme (wix#2704) * ColorPicker - allow theme * Add props Co-authored-by: Inbal Tish <33805983+Inbal-Tish@users.noreply.github.com> --------- Co-authored-by: Inbal Tish <33805983+Inbal-Tish@users.noreply.github.com> * Slider - fix value out of range warning in range slider (wix#2709) * Add key to BadgeProps (wix#2689) * wheel picker onlayout fix (wix#2705) * wheel picker onlayout fix * removed comments * limit picker number of lines (wix#2712) * Expose TypographyKeys (wix#2715) * Fix RTL on Android (wix#2717) * Fix picked reanimated typings (wix#2726) * remove ThemeComponent leftovers (wix#2719) * Picker modal list testID (wix#2723) * add testID for picker modal list * add testID for picker modal list * add testID for picker modal list * fix lint * fix: [WEB] SvgImage update styles (wix#2728) * fix: [WEB] SvgImage update styles * fix sizing of svg wrapper * code review --------- Co-authored-by: Inbal Tish <inbalti@wix.com> Co-authored-by: Miki Leib <38354019+M-i-k-e-l@users.noreply.github.com> Co-authored-by: Adi Mordo <adids1221@gmail.com> Co-authored-by: Inbal Tish <33805983+Inbal-Tish@users.noreply.github.com> Co-authored-by: Ethan Sharabi <1780255+ethanshar@users.noreply.github.com> Co-authored-by: Lidor Dafna <66782556+lidord-wix@users.noreply.github.com> Co-authored-by: M-i-k-e-l <michaelle@wix.com> Co-authored-by: Amit Shwarts <amitshw@wix.com> Co-authored-by: lidord-wix <lidord@wix.com> Co-authored-by: Oren Zakay <orenz@wix.com> Co-authored-by: israelko <85411297+israelko@users.noreply.github.com> Co-authored-by: Liat Netach <60575762+liatnetach@users.noreply.github.com> Co-authored-by: yuvalsho <49347352+yuvalsho@users.noreply.github.com>
1 parent 1e05cf4 commit 334d264

File tree

243 files changed

+4301
-2461
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+4301
-2461
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
## Description
2-
*Enter description to help the reviewer understand what's the change about...*
2+
<!--
3+
Enter description to help the reviewer understand what's the change about...
4+
-->
35

46
## Changelog
5-
*Add a quick message for our users about this change (include Component name, relevant props and general purpose of the PR)*
7+
<!--
8+
Add a quick message for our users about this change (include Component name, relevant props and general purpose of the PR)
9+
-->
10+
11+
## Additional info
12+
<!--
13+
If applicable, add additional info such as link to the bug being fixed by this PR etc
14+
-->

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ markdowns/
240240
.babelrc
241241
# typings/
242242
# eslint-rules/
243-
scripts/
243+
scripts/*
244+
!scripts/prReleaseNotesCommon.js
244245
demo-app.component.js
245246
index.android.js
246247
index.ios.js

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,7 @@ class MyScreen extends Component {
127127
}
128128
}
129129
```
130+
131+
## Contributing
132+
See [Contribution Guide](https://github.com/wix/react-native-ui-lib/blob/master/CONTRIBUTING.md)
133+

android/app/src/main/java/com/rnuilib/MainApplication.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.reactnativenavigation.NavigationApplication;
1111
import com.reactnativenavigation.react.NavigationReactNativeHost;
1212
import com.wix.reactnativeuilib.UiLibPackageList;
13-
import com.swmansion.reanimated.ReanimatedJSIModulePackage;
1413

1514
import java.util.List;
1615

@@ -23,11 +22,6 @@ protected String getJSMainModuleName() {
2322
return "demo";
2423
}
2524

26-
@Override
27-
protected JSIModulePackage getJSIModulePackage() {
28-
return new ReanimatedJSIModulePackage();
29-
}
30-
3125
@Override
3226
public boolean getUseDeveloperSupport() {
3327
return BuildConfig.DEBUG;

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
minSdkVersion = 21
77
compileSdkVersion = 33
88
targetSdkVersion = 33
9-
RNNKotlinVersion = "1.6.0"
9+
RNNKotlinVersion = "1.8.0"
1010
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
1111
ndkVersion = "23.1.7779620"
1212
}

demo/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"release": "node ./scripts/release.js",
1616
"demoRelease": "node ./scripts/demoRelease.js"
1717
},
18+
"dependencies": {
19+
"light-date": "^1.2.0"
20+
},
1821
"devDependencies": {
1922
"react-native-ui-lib": "7.1.0",
2023
"shell-utils": "^1.0.10"

demo/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ module.exports = {
210210
get SpacingsScreen() {
211211
return require('./screens/foundationScreens/SpacingsScreen').default;
212212
},
213+
get RTLScreen() {
214+
return require('./screens/foundationScreens/RTLScreen').default;
215+
},
213216
// animationScreens
214217
get CardScannerScreen() {
215218
return require('./screens/componentScreens/CardScannerScreen').default;

demo/src/screens/ExampleScreenPresenter.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export function renderBooleanOption(title: string,
5353
{title}
5454
</Text>
5555
<Switch
56-
useCustomTheme
5756
key={key}
5857
testID={key}
5958
value={value}
@@ -84,7 +83,6 @@ export function renderBooleanGroup(title: string, options: string[]) {
8483
<View spread centerH row key={key}>
8584
<Checkbox
8685
marginR-s2
87-
useCustomTheme
8886
key={key}
8987
testID={key}
9088
value={value}
@@ -125,7 +123,6 @@ export function renderRadioGroup(title: string,
125123
{_.map(options, (value, key) => {
126124
return (
127125
<RadioButton
128-
useCustomTheme
129126
testID={key}
130127
key={key}
131128
marginB-s2

demo/src/screens/MenuStructure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export const navigationData = {
77
{title: 'Dark Mode', tags: 'dark mode colors', screen: 'unicorn.style.DarkModeScreen'},
88
{title: 'Shadows (iOS)', tags: 'shadow', screen: 'unicorn.style.ShadowsScreen'},
99
{title: 'Spacings', tags: 'space margins paddings gutter', screen: 'unicorn.style.SpacingsScreen'},
10-
{title: 'Typography', tags: 'fonts text', screen: 'unicorn.style.TypographyScreen'}
10+
{title: 'Typography', tags: 'fonts text', screen: 'unicorn.style.TypographyScreen'},
11+
{title: 'RTL Support', tags: 'rtl', screen: 'unicorn.style.RTLScreen'}
1112
]
1213
},
1314
// Wrappers: {

demo/src/screens/PlaygroundScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {Component} from 'react';
2-
import {View, Text, Card, TextField, Button} from 'react-native-ui-lib'; //eslint-disable-line
2+
import {View, Text, Card, TextField, Button} from 'react-native-ui-lib';
33

44
export default class PlaygroundScreen extends Component {
55
render() {

demo/src/screens/__tests__/__snapshots__/AvatarScreen.spec.js.snap

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports[`AvatarScreen renders screen 1`] = `
3636
{
3737
"backgroundColor": "transparent",
3838
"color": "#20303C",
39-
"textAlign": "left",
39+
"writingDirection": "ltr",
4040
},
4141
undefined,
4242
{
@@ -159,7 +159,7 @@ exports[`AvatarScreen renders screen 1`] = `
159159
{
160160
"backgroundColor": "transparent",
161161
"color": "#20303C",
162-
"textAlign": "left",
162+
"writingDirection": "ltr",
163163
},
164164
undefined,
165165
{
@@ -289,7 +289,7 @@ exports[`AvatarScreen renders screen 1`] = `
289289
{
290290
"backgroundColor": "transparent",
291291
"color": "#20303C",
292-
"textAlign": "left",
292+
"writingDirection": "ltr",
293293
},
294294
{
295295
"fontFamily": "System",
@@ -342,7 +342,7 @@ exports[`AvatarScreen renders screen 1`] = `
342342
{
343343
"backgroundColor": "transparent",
344344
"color": "#20303C",
345-
"textAlign": "left",
345+
"writingDirection": "ltr",
346346
},
347347
undefined,
348348
{
@@ -444,7 +444,7 @@ exports[`AvatarScreen renders screen 1`] = `
444444
{
445445
"backgroundColor": "transparent",
446446
"color": "#20303C",
447-
"textAlign": "left",
447+
"writingDirection": "ltr",
448448
},
449449
undefined,
450450
undefined,
@@ -514,7 +514,7 @@ exports[`AvatarScreen renders screen 1`] = `
514514
{
515515
"backgroundColor": "transparent",
516516
"color": "#20303C",
517-
"textAlign": "left",
517+
"writingDirection": "ltr",
518518
},
519519
{
520520
"fontFamily": "System",
@@ -567,7 +567,7 @@ exports[`AvatarScreen renders screen 1`] = `
567567
{
568568
"backgroundColor": "transparent",
569569
"color": "#20303C",
570-
"textAlign": "left",
570+
"writingDirection": "ltr",
571571
},
572572
undefined,
573573
{
@@ -669,7 +669,7 @@ exports[`AvatarScreen renders screen 1`] = `
669669
{
670670
"backgroundColor": "transparent",
671671
"color": "#20303C",
672-
"textAlign": "left",
672+
"writingDirection": "ltr",
673673
},
674674
undefined,
675675
undefined,
@@ -797,7 +797,7 @@ exports[`AvatarScreen renders screen 1`] = `
797797
{
798798
"backgroundColor": "transparent",
799799
"color": "#20303C",
800-
"textAlign": "left",
800+
"writingDirection": "ltr",
801801
},
802802
undefined,
803803
{
@@ -1048,7 +1048,7 @@ exports[`AvatarScreen renders screen 1`] = `
10481048
{
10491049
"backgroundColor": "transparent",
10501050
"color": "#20303C",
1051-
"textAlign": "left",
1051+
"writingDirection": "ltr",
10521052
},
10531053
undefined,
10541054
{
@@ -1299,7 +1299,7 @@ exports[`AvatarScreen renders screen 1`] = `
12991299
{
13001300
"backgroundColor": "transparent",
13011301
"color": "#20303C",
1302-
"textAlign": "left",
1302+
"writingDirection": "ltr",
13031303
},
13041304
undefined,
13051305
{
@@ -1501,7 +1501,7 @@ exports[`AvatarScreen renders screen 1`] = `
15011501
{
15021502
"backgroundColor": "transparent",
15031503
"color": "#20303C",
1504-
"textAlign": "left",
1504+
"writingDirection": "ltr",
15051505
},
15061506
undefined,
15071507
{
@@ -1752,7 +1752,7 @@ exports[`AvatarScreen renders screen 1`] = `
17521752
{
17531753
"backgroundColor": "transparent",
17541754
"color": "#20303C",
1755-
"textAlign": "left",
1755+
"writingDirection": "ltr",
17561756
},
17571757
undefined,
17581758
{
@@ -2047,7 +2047,7 @@ exports[`AvatarScreen renders screen 1`] = `
20472047
{
20482048
"backgroundColor": "transparent",
20492049
"color": "#20303C",
2050-
"textAlign": "left",
2050+
"writingDirection": "ltr",
20512051
},
20522052
undefined,
20532053
{
@@ -2231,7 +2231,7 @@ exports[`AvatarScreen renders screen 1`] = `
22312231
{
22322232
"backgroundColor": "transparent",
22332233
"color": "#20303C",
2234-
"textAlign": "left",
2234+
"writingDirection": "ltr",
22352235
},
22362236
undefined,
22372237
{
@@ -2338,7 +2338,7 @@ exports[`AvatarScreen renders screen 1`] = `
23382338
{
23392339
"backgroundColor": "transparent",
23402340
"color": "#20303C",
2341-
"textAlign": "left",
2341+
"writingDirection": "ltr",
23422342
},
23432343
undefined,
23442344
undefined,
@@ -2457,7 +2457,7 @@ exports[`AvatarScreen renders screen 1`] = `
24572457
{
24582458
"backgroundColor": "transparent",
24592459
"color": "#20303C",
2460-
"textAlign": "left",
2460+
"writingDirection": "ltr",
24612461
},
24622462
undefined,
24632463
{
@@ -2564,7 +2564,7 @@ exports[`AvatarScreen renders screen 1`] = `
25642564
{
25652565
"backgroundColor": "transparent",
25662566
"color": "#20303C",
2567-
"textAlign": "left",
2567+
"writingDirection": "ltr",
25682568
},
25692569
undefined,
25702570
undefined,
@@ -2683,7 +2683,7 @@ exports[`AvatarScreen renders screen 1`] = `
26832683
{
26842684
"backgroundColor": "transparent",
26852685
"color": "#20303C",
2686-
"textAlign": "left",
2686+
"writingDirection": "ltr",
26872687
},
26882688
undefined,
26892689
{
@@ -2867,7 +2867,7 @@ exports[`AvatarScreen renders screen 1`] = `
28672867
{
28682868
"backgroundColor": "transparent",
28692869
"color": "#20303C",
2870-
"textAlign": "left",
2870+
"writingDirection": "ltr",
28712871
},
28722872
undefined,
28732873
{
@@ -2969,7 +2969,7 @@ exports[`AvatarScreen renders screen 1`] = `
29692969
{
29702970
"backgroundColor": "transparent",
29712971
"color": "#20303C",
2972-
"textAlign": "left",
2972+
"writingDirection": "ltr",
29732973
},
29742974
undefined,
29752975
undefined,
@@ -3072,19 +3072,35 @@ exports[`AvatarScreen renders screen 1`] = `
30723072
>
30733073
<Text
30743074
allowFontScaling={false}
3075+
fsTagName="unmask"
30753076
numberOfLines={1}
30763077
style={
30773078
[
30783079
{
30793080
"backgroundColor": "transparent",
3080-
"color": "#FFFFFF",
3081-
"fontFamily": "System",
3082-
"fontSize": 12,
3083-
"fontWeight": "700",
3084-
"lineHeight": 16,
3081+
"color": "#20303C",
3082+
"writingDirection": "ltr",
30853083
},
3086-
false,
30873084
undefined,
3085+
undefined,
3086+
undefined,
3087+
undefined,
3088+
undefined,
3089+
undefined,
3090+
undefined,
3091+
undefined,
3092+
[
3093+
{
3094+
"backgroundColor": "transparent",
3095+
"color": "#FFFFFF",
3096+
"fontFamily": "System",
3097+
"fontSize": 12,
3098+
"fontWeight": "700",
3099+
"lineHeight": 16,
3100+
},
3101+
false,
3102+
undefined,
3103+
],
30883104
]
30893105
}
30903106
testID="badge"

demo/src/screens/componentScreens/ActionBarScreen.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ import collections from '../../assets/icons/collections.png';
99
import richText from '../../assets/icons/richText.png';
1010

1111
export default class ActionBarScreen extends Component {
12-
constructor(props) {
13-
super(props);
14-
15-
this.state = {
16-
currentPage: 0
17-
};
18-
}
12+
state = {
13+
currentPage: 0
14+
};
1915

2016
render() {
2117
return (

0 commit comments

Comments
 (0)