Skip to content

Commit 548abb8

Browse files
authored
Merge branch 'master' into master
2 parents 5aa435d + 3e122e2 commit 548abb8

Some content is hidden

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

60 files changed

+2451
-461
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ module.exports = {
88
'no-undef': 'off',
99
/* Other Rules */
1010
'no-unused-expressions': 'off',
11+
'no-restricted-syntax': [
12+
'error',
13+
{
14+
selector: `CallExpression[callee.object.name='console'][callee.property.name='error']`,
15+
message: 'Using console.error is not allowed as it is sent to Sentry, please use LogService.error instead'
16+
}
17+
],
1118
'arrow-parens': 'off',
1219
// TODO: remove after migration of legacy lifecycle methods
1320
camelcase: 'off',

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ exports[`AvatarScreen renders screen 1`] = `
121121
"bottom": 0,
122122
"justifyContent": "center",
123123
"left": 0,
124+
"overflow": "hidden",
124125
"position": "absolute",
125126
"right": 0,
126127
"top": 0,
@@ -247,6 +248,7 @@ exports[`AvatarScreen renders screen 1`] = `
247248
"bottom": 0,
248249
"justifyContent": "center",
249250
"left": 0,
251+
"overflow": "hidden",
250252
"position": "absolute",
251253
"right": 0,
252254
"top": 0,
@@ -434,6 +436,7 @@ exports[`AvatarScreen renders screen 1`] = `
434436
"bottom": 0,
435437
"justifyContent": "center",
436438
"left": 0,
439+
"overflow": "hidden",
437440
"position": "absolute",
438441
"right": 0,
439442
"top": 0,
@@ -448,6 +451,7 @@ exports[`AvatarScreen renders screen 1`] = `
448451
testID="undefined.container"
449452
>
450453
<Text
454+
ellipsizeMode="clip"
451455
numberOfLines={1}
452456
style={
453457
[
@@ -663,6 +667,7 @@ exports[`AvatarScreen renders screen 1`] = `
663667
"bottom": 0,
664668
"justifyContent": "center",
665669
"left": 0,
670+
"overflow": "hidden",
666671
"position": "absolute",
667672
"right": 0,
668673
"top": 0,
@@ -677,6 +682,7 @@ exports[`AvatarScreen renders screen 1`] = `
677682
testID="undefined.container"
678683
>
679684
<Text
685+
ellipsizeMode="clip"
680686
numberOfLines={1}
681687
style={
682688
[
@@ -898,6 +904,7 @@ exports[`AvatarScreen renders screen 1`] = `
898904
"bottom": 0,
899905
"justifyContent": "center",
900906
"left": 0,
907+
"overflow": "hidden",
901908
"position": "absolute",
902909
"right": 0,
903910
"top": 0,
@@ -1155,6 +1162,7 @@ exports[`AvatarScreen renders screen 1`] = `
11551162
"bottom": 0,
11561163
"justifyContent": "center",
11571164
"left": 0,
1165+
"overflow": "hidden",
11581166
"position": "absolute",
11591167
"right": 0,
11601168
"top": 0,
@@ -1412,6 +1420,7 @@ exports[`AvatarScreen renders screen 1`] = `
14121420
"bottom": 0,
14131421
"justifyContent": "center",
14141422
"left": 0,
1423+
"overflow": "hidden",
14151424
"position": "absolute",
14161425
"right": 0,
14171426
"top": 0,
@@ -1620,6 +1629,7 @@ exports[`AvatarScreen renders screen 1`] = `
16201629
"bottom": 0,
16211630
"justifyContent": "center",
16221631
"left": 0,
1632+
"overflow": "hidden",
16231633
"position": "absolute",
16241634
"right": 0,
16251635
"top": 0,
@@ -1877,6 +1887,7 @@ exports[`AvatarScreen renders screen 1`] = `
18771887
"bottom": 0,
18781888
"justifyContent": "center",
18791889
"left": 0,
1890+
"overflow": "hidden",
18801891
"position": "absolute",
18811892
"right": 0,
18821893
"top": 0,
@@ -2179,6 +2190,7 @@ exports[`AvatarScreen renders screen 1`] = `
21792190
"bottom": 0,
21802191
"justifyContent": "center",
21812192
"left": 0,
2193+
"overflow": "hidden",
21822194
"position": "absolute",
21832195
"right": 0,
21842196
"top": 0,
@@ -2367,6 +2379,7 @@ exports[`AvatarScreen renders screen 1`] = `
23672379
"bottom": 0,
23682380
"justifyContent": "center",
23692381
"left": 0,
2382+
"overflow": "hidden",
23702383
"position": "absolute",
23712384
"right": 0,
23722385
"top": 0,
@@ -2386,6 +2399,7 @@ exports[`AvatarScreen renders screen 1`] = `
23862399
testID="undefined.container"
23872400
>
23882401
<Text
2402+
ellipsizeMode="clip"
23892403
numberOfLines={1}
23902404
style={
23912405
[
@@ -2597,6 +2611,7 @@ exports[`AvatarScreen renders screen 1`] = `
25972611
"bottom": 0,
25982612
"justifyContent": "center",
25992613
"left": 0,
2614+
"overflow": "hidden",
26002615
"position": "absolute",
26012616
"right": 0,
26022617
"top": 0,
@@ -2616,6 +2631,7 @@ exports[`AvatarScreen renders screen 1`] = `
26162631
testID="undefined.container"
26172632
>
26182633
<Text
2634+
ellipsizeMode="clip"
26192635
numberOfLines={1}
26202636
style={
26212637
[
@@ -2827,6 +2843,7 @@ exports[`AvatarScreen renders screen 1`] = `
28272843
"bottom": 0,
28282844
"justifyContent": "center",
28292845
"left": 0,
2846+
"overflow": "hidden",
28302847
"position": "absolute",
28312848
"right": 0,
28322849
"top": 0,
@@ -3015,6 +3032,7 @@ exports[`AvatarScreen renders screen 1`] = `
30153032
"bottom": 0,
30163033
"justifyContent": "center",
30173034
"left": 0,
3035+
"overflow": "hidden",
30183036
"position": "absolute",
30193037
"right": 0,
30203038
"top": 0,
@@ -3029,6 +3047,7 @@ exports[`AvatarScreen renders screen 1`] = `
30293047
testID="undefined.container"
30303048
>
30313049
<Text
3050+
ellipsizeMode="clip"
30323051
numberOfLines={1}
30333052
style={
30343053
[

docuilib/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const darkCodeTheme = themes.dracula;
1818
trailingSlash: false,
1919
customFields: {
2020
docsMainEntry: 'getting-started/setup',
21+
docsDevelopmentVersion: 'next',
2122
expoSnackLink: 'https://snack.expo.io/@ethanshar/rnuilib_snack',
2223
stars: '4.7'
2324
},

docuilib/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-docs",
3-
"version": "3.3.5",
3+
"version": "3.13.0",
44
"main": "./src/index.ts",
55
"scripts": {
66
"docusaurus": "docusaurus",
@@ -30,6 +30,7 @@
3030
"clsx": "^1.1.1",
3131
"docusaurus-plugin-sass": "^0.2.1",
3232
"file-loader": "^6.2.0",
33+
"prettier": "2.8.8",
3334
"prism-react-renderer": "^2.1.0",
3435
"react-html-parser": "^2.0.2",
3536
"react-native-web": "^0.19.12",

docuilib/src/assets/icons/code.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
3+
const CodeIcon = (props: React.ComponentProps<'svg'>) => {
4+
return (
5+
<svg {...props} viewBox="0 0 18 18" fill="currentColor" width="18" height="18">
6+
<path d="M10,6.00254473 L11,6.00254473 L8,13 L7,13 L10,6.00254473 Z M6,12 L5.74819324,12 L1.99934428,9.78978657 L2.00158404,9.20893357 L5.74819324,7 L6.00018511,7 L6.00018511,8 L3.50778222,9.5 L6,11 L6,12 Z M11.9995294,12 L11.9995294,11 L14.4917472,9.5 L11.9993443,8 L11.9993443,7 L12.2513362,7 L15.9979454,9.20893357 L16.0001851,9.78978657 L12.2513362,12 L11.9995294,12 Z"/>
7+
</svg>
8+
);
9+
};
10+
11+
export default CodeIcon;

docuilib/src/assets/icons/copy.png

-286 Bytes
Binary file not shown.
-448 Bytes
Binary file not shown.
-554 Bytes
Binary file not shown.
-871 Bytes
Binary file not shown.
-1.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)