Skip to content

Commit 76fc199

Browse files
committed
Merge branch 'master' into release
2 parents 71e771a + 92def0c commit 76fc199

File tree

141 files changed

+5538
-2468
lines changed

Some content is hidden

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

141 files changed

+5538
-2468
lines changed

.eslintignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
/src/style/typography.js
2-
**/*.ts
3-
**/*.tsx
1+
/src/style/typography.js

.eslintrc.js

Lines changed: 24 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,44 @@
11
module.exports = {
22
extends: ['plugin:@typescript-eslint/recommended', 'wix/react-native', 'plugin:react-hooks/recommended'],
33
parser: '@typescript-eslint/parser',
4+
// plugins: ['@typescript-eslint'],
45
rules: {
6+
/* Disabled rules for typescript */
7+
'no-dupe-class-members': 'off',
8+
/* Other Rules */
9+
'no-unused-expressions': 'off',
510
'arrow-parens': 'off',
611
// TODO: remove after migration of legacy lifecycle methods
712
camelcase: 'off',
813
'comma-dangle': ['error', 'never'],
914
'no-mixed-operators': ['off'],
1015
'no-trailing-spaces': 'off',
1116
'operator-linebreak': 'off',
12-
'max-len': ['warn', {code: 120}],
17+
'max-len': ['warn', {code: 120, ignoreComments: true, ignoreStrings: true}],
1318
'react/jsx-no-bind': [
14-
'warn',
19+
'off',
1520
{
1621
ignoreRefs: true,
1722
allowArrowFunctions: false,
18-
allowBind: false,
19-
},
23+
allowBind: false
24+
}
2025
],
2126
'function-paren-newline': ['warn', 'never'],
2227
'new-cap': ['off'], // TODO: fix this in colors.js and remove this
2328
'default-case': ['off'],
24-
"@typescript-eslint/no-use-before-define": 0,
25-
"@typescript-eslint/explicit-function-return-type": 0,
26-
"@typescript-eslint/no-var-requires": 0,
27-
"@typescript-eslint/no-explicit-any": 0,
28-
"@typescript-eslint/member-delimiter-style": 0,
29-
// "@typescript-eslint/no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}],
30-
"@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^
31-
"@typescript-eslint/no-non-null-assertion": 0,
32-
"@typescript-eslint/explicit-member-accessibility": 0,
33-
"@typescript-eslint/prefer-optional-chain": "error",
34-
"@typescript-eslint/ban-ts-ignore": 0,
35-
"@typescript-eslint/no-empty-function": 0,
36-
"@typescript-eslint/camelcase": 0,
37-
"@typescript-eslint/indent": 0
38-
},
39-
plugins: ['@typescript-eslint'],
29+
'@typescript-eslint/no-use-before-define': 0,
30+
'@typescript-eslint/explicit-function-return-type': 0,
31+
'@typescript-eslint/no-var-requires': 0,
32+
'@typescript-eslint/no-explicit-any': 0,
33+
'@typescript-eslint/member-delimiter-style': 0,
34+
'@typescript-eslint/no-unused-vars': [2, {args: 'all', argsIgnorePattern: '^_'}],
35+
// "@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^
36+
'@typescript-eslint/no-non-null-assertion': 0,
37+
'@typescript-eslint/explicit-member-accessibility': 0,
38+
'@typescript-eslint/prefer-optional-chain': 'error',
39+
'@typescript-eslint/ban-ts-ignore': 0,
40+
'@typescript-eslint/no-empty-function': 0,
41+
'@typescript-eslint/camelcase': 0,
42+
'@typescript-eslint/indent': 0
43+
}
4044
};
41-
42-
// OLD ESlint configuration
43-
// const validColors = require('./src/style/colorsPalette').colorsPalette;
44-
// const extraFixColorsMap = require('./src/style/colorsPalette').extraFixColorsMap;
45-
// const assetsDepJson = require('./eslint-rules/tests/assets_deprecation.json');
46-
// const deprecationsJson = require('./eslint-rules/tests/component_deprecation.json');
47-
48-
// module.exports = {
49-
// parser: 'babel-eslint',
50-
// extends: 'wix/react-native',
51-
// // plugins: ['react', 'react-native', 'uilib'],
52-
// // extends: ['airbnb'],
53-
// rules: {
54-
// 'arrow-body-style': 'off',
55-
// 'arrow-parens': 'off',
56-
// // TODO: remove after migration of legacy lifecycle methods
57-
// 'camelcase': 'off',
58-
// 'class-methods-use-this': 'off',
59-
// 'consistent-return': 'off',
60-
// 'comma-dangle': 'off',
61-
// 'global-require': 'off',
62-
// 'max-len': [2, 130, 4, {ignoreUrls: true}],
63-
// 'no-nested-ternary': 'off',
64-
// 'no-else-return': 'off',
65-
// 'no-mixed-operators': ['off'],
66-
// 'no-param-reassign': ['warn'],
67-
// 'no-plusplus': 'off',
68-
// 'no-return-assign': 'off',
69-
// 'no-trailing-spaces': 'off',
70-
// 'no-use-before-define': 'off',
71-
// 'no-unneeded-ternary': 'off',
72-
// 'no-mixed-operators': 'off',
73-
// 'no-underscore-dangle': ['error', {'allowAfterThis': true}],
74-
// 'object-curly-spacing': 'off',
75-
// 'operator-linebreak': 'off',
76-
// 'react/forbid-prop-types': 'off',
77-
// 'react/jsx-filename-extension': 'off',
78-
// 'react/jsx-space-before-closing': 'off',
79-
// 'react/jsx-tag-spacing': 'off',
80-
// 'react/prefer-stateless-function': 'off',
81-
// 'react/prop-types': ['error', {ignore: ['children', 'style', 'testID']}],
82-
// 'react/require-default-props': 'off',
83-
// "react/sort-comp": ['warn'],
84-
// 'react/jsx-no-bind': [
85-
// 'warn',
86-
// {
87-
// ignoreRefs: true,
88-
// allowArrowFunctions: false,
89-
// allowBind: false,
90-
// },
91-
// ],
92-
// 'import/prefer-default-export': 'off'
93-
// },
94-
// env: {
95-
// browser: true,
96-
// node: true,
97-
// jest: true,
98-
// },
99-
// settings: {
100-
// 'import/resolver': {
101-
// node: {
102-
// extensions: ['.js', '.ios.js', '.android.js'],
103-
// },
104-
// },
105-
// },
106-
// };
12.8 KB
Loading

android/app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
android:viewportHeight="108"
66
android:viewportWidth="108"
77
xmlns:android="http://schemas.android.com/apk/res/android">
8-
<path android:fillColor="#008577"
8+
<path android:fillColor="#3DDC84"
99
android:pathData="M0,0h108v108h-108z"/>
1010
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
1111
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
-118 Bytes
Loading
Loading
Loading
-229 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

demo/src/assets/icons/bell.png

274 Bytes
Loading
454 Bytes
Loading
632 Bytes
Loading

demo/src/screens/componentScreens/BadgesScreen.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const BadgesSpace = 30;
55
const plusIcon = require('../../assets/icons/chevronUp.png');
66
const minusIcon = require('../../assets/icons/chevronDown.png');
77
const star = require('../../assets/icons/star.png');
8-
const search = require('../../assets/icons/search.png');
9-
8+
const bell = require('../../assets/icons/bell.png');
109

1110
export default class BadgesScreen extends Component {
1211
constructor(props) {
@@ -137,6 +136,15 @@ export default class BadgesScreen extends Component {
137136
</Text>
138137
</View>
139138
</View>
139+
140+
<Text text50 marginB-10 row center marginT-25>
141+
Counter Icon Badges
142+
</Text>
143+
<View row paddingH-15>
144+
<Badge marginR-10 label={'9999'} labelFormatterLimit={3} icon={bell} backgroundColor={Colors.red30}/>
145+
<Badge marginR-10 label={'4'} icon={bell} backgroundColor={Colors.red30}/>
146+
</View>
147+
140148
</ScrollView>
141149
);
142150
}

0 commit comments

Comments
 (0)