Skip to content

Commit 74732f8

Browse files
committed
Merge branch 'master' into release
2 parents 841f215 + 4c83788 commit 74732f8

File tree

102 files changed

+2324
-887
lines changed

Some content is hidden

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

102 files changed

+2324
-887
lines changed

.flowconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ untyped-type-import=warn
5656
nonstrict-import=warn
5757
deprecated-type=warn
5858
unsafe-getters-setters=warn
59-
inexact-spread=warn
6059
unnecessary-invariant=warn
6160
signature-verification-failure=warn
6261
deprecated-utility=error
@@ -71,4 +70,4 @@ untyped-import
7170
untyped-type-import
7271

7372
[version]
74-
^0.113.0
73+
^0.122.0

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Description
2+
*Enter description to help the reviewer understand what's the change about...*
3+
4+
## Changelog
5+
*Add a quick message for our users about this change*

.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"trailingComma": "none",
33
"tabWidth": 2,
44
"singleQuote": true,
5-
"bracketSpacing": false
5+
"bracketSpacing": false,
6+
"arrowParens": "avoid",
7+
"jsxBracketSameLine": false,
8+
"printWidth": 120
69
}

android/app/build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ android {
2727
targetSdkVersion rootProject.ext.targetSdkVersion
2828
versionCode 1
2929
versionName "1.0"
30+
multiDexEnabled true
3031
}
3132
splits {
3233
abi {
@@ -50,20 +51,13 @@ android {
5051
}
5152
release {
5253
// Caution! In production, you need to generate your own keystore file.
53-
// see https://facebook.github.io/react-native/docs/signed-apk-android.
54+
// see https://reactnative.dev/docs/signed-apk-android.
5455
signingConfig signingConfigs.debug
5556
minifyEnabled enableProguardInReleaseBuilds
5657
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
5758
}
5859
}
5960

60-
packagingOptions {
61-
pickFirst "lib/armeabi-v7a/libc++_shared.so"
62-
pickFirst "lib/arm64-v8a/libc++_shared.so"
63-
pickFirst "lib/x86/libc++_shared.so"
64-
pickFirst "lib/x86_64/libc++_shared.so"
65-
}
66-
6761
// applicationVariants are e.g. debug, release
6862
applicationVariants.all { variant ->
6963
variant.outputs.each { output ->
@@ -92,6 +86,7 @@ dependencies {
9286

9387
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
9488
exclude group:'com.facebook.flipper'
89+
exclude group:'com.squareup.okhttp3', module:'okhttp'
9590
}
9691

9792
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "28.0.3"
5+
buildToolsVersion = "29.0.2"
66
minSdkVersion = 19
7-
compileSdkVersion = 28
8-
targetSdkVersion = 28
7+
compileSdkVersion = 29
8+
targetSdkVersion = 29
99
RNNKotlinVersion = "1.3.61" // Or any version above 1.3.x
1010
}
1111
repositories {

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ android.useAndroidX=true
2121
android.enableJetifier=true
2222

2323
# Version of flipper SDK to use with React Native
24-
FLIPPER_VERSION=0.33.1
24+
FLIPPER_VERSION=0.37.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
99
#
10-
# https://www.apache.org/licenses/LICENSE-2.0
10+
# https://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing, software
1313
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -125,7 +125,7 @@ if $darwin; then
125125
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126126
fi
127127

128-
# For Cygwin, switch paths to Windows format before running java
128+
# For Cygwin or MSYS, switch paths to Windows format before running java
129129
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130130
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131131
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
@@ -154,19 +154,19 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
154154
else
155155
eval `echo args$i`="\"$arg\""
156156
fi
157-
i=$((i+1))
157+
i=`expr $i + 1`
158158
done
159159
case $i in
160-
(0) set -- ;;
161-
(1) set -- "$args0" ;;
162-
(2) set -- "$args0" "$args1" ;;
163-
(3) set -- "$args0" "$args1" "$args2" ;;
164-
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165-
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166-
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167-
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168-
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169-
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
160+
0) set -- ;;
161+
1) set -- "$args0" ;;
162+
2) set -- "$args0" "$args1" ;;
163+
3) set -- "$args0" "$args1" "$args2" ;;
164+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170170
esac
171171
fi
172172

@@ -175,14 +175,9 @@ save () {
175175
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176176
echo " "
177177
}
178-
APP_ARGS=$(save "$@")
178+
APP_ARGS=`save "$@"`
179179

180180
# Collect all arguments for the java command, following the shell quoting and substitution rules
181181
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182182

183-
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184-
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185-
cd "$(dirname "$0")"
186-
fi
187-
188183
exec "$JAVACMD" "$@"

demo/src/demoApp.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,12 @@ function getDefaultNavigationStyle() {
9393
title: {
9494
color: Colors.white,
9595
fontSize: Typography.text60H.fontSize,
96-
fontFamily: Constants.isAndroid
97-
? Typography.text65H.fontFamily
98-
: '.SFUIText-Heavy',
99-
fontWeight: 'heavy'
96+
fontFamily: Typography.text65H.fontFamily
10097
},
10198
subtitle: {
10299
color: Colors.white,
103100
fontSize: Typography.text80T.fontSize,
104-
fontFamily: Constants.isAndroid
105-
? Typography.text80.fontFamily
106-
: '.SFUIText-Medium',
107-
fontWeight: 'medium'
101+
fontFamily: Typography.text80.fontFamily
108102
},
109103
backButton: {
110104
// visible: true,

demo/src/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ module.exports = {
4646
get DrawerScreen() {
4747
return require('./screens/componentScreens/DrawerScreen').default;
4848
},
49-
get TagsInputScreen() {
50-
return require('./screens/componentScreens/TagsInputScreen').default;
49+
get ExpandableSectionScreen() {
50+
return require('./screens/componentScreens/ExpandableSectionScreen').default;
51+
},
52+
get ChipsInputScreen() {
53+
return require('./screens/componentScreens/ChipsInputScreen').default;
5154
},
5255
get HintsScreen() {
5356
return require('./screens/componentScreens/HintsScreen').default;
@@ -103,7 +106,7 @@ module.exports = {
103106
get TextScreen() {
104107
return require('./screens/componentScreens/TextScreen').default;
105108
},
106-
// TODO: fix Expo issues (navigation) before un-commenting
109+
// TODO: fix Expo issues (navigation) before un-commenting
107110
// get TextFieldScreen() {
108111
// return require('./screens/componentScreens/TextFieldScreen').default;
109112
// },
@@ -157,7 +160,7 @@ module.exports = {
157160
get LoadingScreen() {
158161
return require('./screens/componentScreens/LoadingScreen').default;
159162
},
160-
// TODO: fix Expo issues (navigation) before un-commenting
163+
// TODO: fix Expo issues (navigation) before un-commenting
161164
// get ModalScreen() {
162165
// return require('./screens/componentScreens/ModalScreen').default;
163166
// },

demo/src/screens/CustomScreen.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

demo/src/screens/MenuStructure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const navigationData = {
3131
{title: 'Cards', tags: 'cards feed', screen: 'unicorn.components.CardsScreen'},
3232
{title: 'Connection Status Bar', tags: 'connection status bar', screen: 'unicorn.components.ConnectionStatusBar'},
3333
{title: 'Chip', tags: 'chip', screen: 'unicorn.components.ChipScreen'},
34+
{title: 'ExpandableSection', tags: 'expandable section', screen: 'unicorn.components.ExpandableSectionScreen'},
3435
// {title: 'Overlays', tags: 'overlay image', screen: 'unicorn.components.OverlaysScreen'},
3536
{title: 'Page Control', tags: 'page', screen: 'unicorn.components.PageControlScreen'},
3637
{title: 'ProgressBar', tags: 'progress bar animated', screen: 'unicorn.animations.ProgressBarScreen'},
@@ -57,7 +58,7 @@ export const navigationData = {
5758
{title: 'Stepper', tags: 'stepper form', screen: 'unicorn.components.StepperScreen'},
5859
{title: 'Slider', tags: 'slider', screen: 'unicorn.components.SliderScreen'},
5960
{title: 'Switch', tags: 'switch toggle', screen: 'unicorn.components.SwitchScreen'},
60-
{title: 'TagsInput', tags: 'tags input form', screen: 'unicorn.components.TagsInputScreen'},
61+
{title: 'ChipsInput', tags: 'chips tags input form', screen: 'unicorn.components.ChipsInputScreen'},
6162
{title: 'Masked Inputs', tags: 'text input form mask', screen: 'unicorn.components.MaskedInputScreen'}
6263
]
6364
},

demo/src/screens/componentScreens/BadgesScreen.js renamed to demo/src/screens/componentScreens/BadgesScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class BadgesScreen extends Component {
3333
</Text>
3434
<View row center style={{alignItems: 'flex-start'}}>
3535
<View center paddingH-10>
36-
<Badge label={this.state.value.toString()} backgroundColor={Colors.red30}/>
36+
<Badge size={'default'} label={this.state.value.toString()} backgroundColor={Colors.red30}/>
3737
<Badge
3838
label={this.state.value.toString()}
3939
containerStyle={{marginTop: BadgesSpace}}
@@ -133,7 +133,7 @@ export default class BadgesScreen extends Component {
133133
<View style={styles.iconBadgeColumnContainer}>
134134
<Badge icon={star} borderRadius={6} iconStyle={{backgroundColor: Colors.red30}}/>
135135
<Text text80 style={{marginTop: 10}}>
136-
border radius (6)
136+
border radius
137137
</Text>
138138
</View>
139139
</View>

demo/src/screens/componentScreens/TagsInputScreen.js renamed to demo/src/screens/componentScreens/ChipsInputScreen.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import React, {Component} from 'react';
22
import {StyleSheet, ScrollView} from 'react-native';
3-
import {View, Colors, Text, Typography, TagsInput} from 'react-native-ui-lib'; // eslint-disable-line
3+
import {View, Colors, Text, Typography, ChipsInput} from 'react-native-ui-lib'; // eslint-disable-line
44

55

6-
export default class TagsInputScreen extends Component {
6+
export default class ChipsInputScreen extends Component {
77
constructor(props) {
88
super(props);
99

1010
this.state = {
1111
tags: [{label: 'Amit'}, {label: 'Ethan', invalid: true}],
12-
tags2: ['Tags', 'Input'],
12+
tags2: ['Chips', 'Input'],
1313
tags3: ['Non', 'Removable', 'Tags']
1414
};
1515
}
1616

1717
onTagPress = (tagIndex, markedTagIndex) => {
18-
this.customTagsInput.markTagIndex(tagIndex === markedTagIndex ? undefined : tagIndex);
18+
this.customChipsInput.markTagIndex(tagIndex === markedTagIndex ? undefined : tagIndex);
1919
};
2020

2121
renderCustomTag(tag, index, shouldMarkToRemove) {
@@ -31,24 +31,24 @@ export default class TagsInputScreen extends Component {
3131
<ScrollView keyboardShouldPersistTaps="never">
3232
<View style={styles.container}>
3333
<Text text40 marginB-20>
34-
TagsInput
34+
ChipsInput
3535
</Text>
3636

37-
<TagsInput containerStyle={{marginBottom: 25}} placeholder="Enter Tags" tags={this.state.tags2}/>
37+
<ChipsInput containerStyle={{marginBottom: 25}} placeholder="Enter Tags" tags={this.state.tags2}/>
3838

39-
<TagsInput containerStyle={{marginBottom: 25}} placeholder="Enter Tags" tags={this.state.tags}
39+
<ChipsInput containerStyle={{marginBottom: 25}} placeholder="Enter Tags" tags={this.state.tags}
4040
validationErrorMessage="error validation message" />
4141

42-
<TagsInput
42+
<ChipsInput
4343
containerStyle={{marginBottom: 25}}
4444
placeholder="Editing disabled"
4545
tags={this.state.tags3}
4646
disableTagRemoval
4747
disableTagAdding
4848
/>
4949

50-
<TagsInput
51-
ref={r => (this.customTagsInput = r)}
50+
<ChipsInput
51+
ref={r => (this.customChipsInput = r)}
5252
containerStyle={{marginBottom: 25}}
5353
placeholder="With custom tags"
5454
tags={this.state.tags}

0 commit comments

Comments
 (0)