Skip to content

Commit da3272b

Browse files
authored
Create installation-for-react-native-below-67.md
1 parent 3c9900d commit da3272b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## For React Native Versions 0.67 and Below
2+
### iOS:
3+
**Update your `Podfile`** with the following line:
4+
```
5+
pod 'react-native-theme-switch-animation', :path => '../node_modules/react-native-theme-switch-animation'
6+
```
7+
8+
### Android:
9+
10+
Modify your `android/app/build.gradle` file to include:
11+
```
12+
implementation project(':react-native-theme-switch-animation')
13+
```
14+
15+
Update your `settings.gradle` file with:
16+
```
17+
include ':react-native-theme-switch-animation'
18+
project(':react-native-theme-switch-animation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-theme-switch-animation/android')
19+
```
20+
21+
Update `MainActivity.java`:
22+
```
23+
import com.themeswitchanimation.ThemeSwitchAnimationPackage;
24+
```
25+
26+
```
27+
packages.add(new ThemeSwitchAnimationPackage());
28+
```

0 commit comments

Comments
 (0)