Skip to content

Commit 6bc2dea

Browse files
authored
fix(0.70.6) :new animation implementation with react-native-reanimated (#404)
BREAKING CHANGES: require react-native-reanimated Co-authored-by: Jérémy Barbe <[email protected]>
1 parent 5b7e570 commit 6bc2dea

19 files changed

+1336
-712
lines changed

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint
5+
yarn prepare

README.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Custom animated bottom-tab-bar for react-native.
66

77
## 💾 Installation
88

9-
Make sure you installed `react-native-safe-area-context` before installing the library : https
9+
Make sure you installed `react-native-safe-area-context` before installing the library
1010

1111
```
1212
yarn add rn-wave-bottom-bar
@@ -21,11 +21,7 @@ npm install rn-wave-bottom-bar --save
2121
## 📋 Requirements
2222

2323
- React-Navigation v6 installed : https://reactnavigation.org/
24-
25-
## :sparkles: What's new in 2.0.1
26-
27-
- New tab bar button shape : square
28-
- Now support tabBarLabel
24+
- React-native reanimated 2.+ installed : https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation
2925

3026
## ⚒️ Usage
3127

@@ -178,6 +174,7 @@ Initial Design : https://uimovement.com/design/tab-bar-3/
178174

179175
## More
180176

181-
Checkout our other libraries :
177+
📌 Checkout our other libraries :
182178

183179
- rn-gauge : https://github.com/Winzana/rn-gauge
180+
- rn-exclude-system-gesture-area: https://github.com/Winzana/rn-exclude-system-gesture-area

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
1212
android:theme="@style/AppTheme">
13-
<activity
13+
<activity
14+
android:exported="true"
1415
android:name=".MainActivity"
1516
android:label="@string/app_name"
1617
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"

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

-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.facebook.react.ReactActivity;
44
import com.facebook.react.ReactActivityDelegate;
55
import com.facebook.react.ReactRootView;
6-
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
76

87
public class MainActivity extends ReactActivity {
98

@@ -15,13 +14,4 @@ public class MainActivity extends ReactActivity {
1514
protected String getMainComponentName() {
1615
return "example";
1716
}
18-
@Override
19-
protected ReactActivityDelegate createReactActivityDelegate() {
20-
return new ReactActivityDelegate(this, getMainComponentName()) {
21-
@Override
22-
protected ReactRootView createRootView() {
23-
return new RNGestureHandlerEnabledRootView(MainActivity.this);
24-
}
25-
};
26-
}
2717
}

example/android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "30.0.2"
5+
buildToolsVersion = "31.0.0"
66
minSdkVersion = 21
7-
compileSdkVersion = 30
8-
targetSdkVersion = 30
7+
compileSdkVersion = 31
8+
targetSdkVersion = 31
99
ndkVersion = "20.1.5948944"
1010
}
1111
repositories {

example/android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
android.useAndroidX=true
2424
# Automatically convert third-party libraries to use AndroidX
2525
android.enableJetifier=true
26-
26+
org.gradle.jvmargs=-Xmx4608m
2727
# Version of flipper SDK to use with React Native
2828
FLIPPER_VERSION=0.176.1

example/babel.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
33
env: {
44
production: {
5-
plugins: ['react-native-paper/babel'],
5+
plugins: ['react-native-paper/babel', 'react-native-reanimated/plugin'],
66
},
77
},
8+
plugins: ['react-native-reanimated/plugin'],
89
};

example/ios/Podfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative '../node_modules/react-native/scripts/react_native_pods'
22
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33

4-
platform :ios, '11.0'
4+
platform :ios, '13.0'
55

66
target 'example' do
77
config = use_native_modules!
@@ -29,4 +29,4 @@ target 'example' do
2929
post_install do |installer|
3030
react_native_post_install(installer)
3131
end
32-
end
32+
end

0 commit comments

Comments
 (0)