Skip to content

Commit 8719d48

Browse files
committed
fix(module): miscellaneous fixes
1 parent 4669cfd commit 8719d48

File tree

12 files changed

+50
-44
lines changed

12 files changed

+50
-44
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v2.0.3
2+
3+
* Prevent error when carousel has only one child (thanks [@kevinvandijk](https://github.com/kevinvandijk) !)
4+
* Fix issue when appending dynamic slides (the first one was ignored)
5+
* Fix edge case that prevented the first slide from being focused when swiping back with momentum enabled
6+
* Bump example's RN version to 0.42.3
7+
18
## v2.0.2
29

310
* Make sure that scroll indicator is hidden by default

example/.flowconfig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ node_modules/react-native/flow
2222
flow/
2323

2424
[options]
25+
emoji=true
26+
2527
module.system=haste
2628

2729
experimental.strict_type_args=true
@@ -34,11 +36,11 @@ suppress_type=$FlowIssue
3436
suppress_type=$FlowFixMe
3537
suppress_type=$FixMe
3638

37-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
39+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
3941
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4042

4143
unsafe.enable_getters_and_setters=true
4244

4345
[version]
44-
^0.37.0
46+
^0.38.0

example/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ yarn-error.log
3939
# BUCK
4040
buck-out/
4141
\.buckd/
42-
android/app/libs
4342
*.keystore
4443

4544
# fastlane

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ android {
8787
buildToolsVersion "23.0.1"
8888

8989
defaultConfig {
90-
applicationId "fr.archriss.example.snap.carousel"
90+
applicationId "com.example"
9191
minSdkVersion 16
9292
targetSdkVersion 22
9393
versionCode 1

example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
<activity
2020
android:name=".MainActivity"
2121
android:label="@string/app_name"
22-
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
22+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
23+
android:windowSoftInputMode="adjustResize">
2324
<intent-filter>
2425
<action android:name="android.intent.action.MAIN" />
2526
<category android:name="android.intent.category.LAUNCHER" />

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.example;
22

33
import android.app.Application;
4-
import android.util.Log;
54

65
import com.facebook.react.ReactApplication;
7-
import com.facebook.react.ReactInstanceManager;
86
import com.facebook.react.ReactNativeHost;
97
import com.facebook.react.ReactPackage;
108
import com.facebook.react.shell.MainReactPackage;

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.3.1'
8+
classpath 'com.android.tools.build:gradle:2.2.3'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"react": "15.4.2",
11-
"react-native": "0.41.2",
11+
"react-native": "0.42.3",
1212
"react-native-snap-carousel": "file:.."
1313
},
1414
"devDependencies": {

example/src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ export default class example extends Component {
6969
render () {
7070
return (
7171
<View style={styles.container}>
72-
<StatusBar backgroundColor={'transparent'} barStyle={'light-content'} />
72+
<StatusBar
73+
translucent={true}
74+
backgroundColor={'rgba(0, 0, 0, 0.3)'}
75+
barStyle={'light-content'}
76+
/>
7377
<View style={styles.colorsContainer}>
7478
<View style={styles.color1} />
7579
<View style={styles.color2} />

0 commit comments

Comments
 (0)