Closed ThalesBMC closed 11 months ago
that is very old version, it could be the problem, but are you sure you did the pod install step?
that is very old version, it could be the problem, but are you sure you did the pod install step?
Yep, It's probably the old version.
When I update to a new version I will test again.
@WadhahEssam,
I've identified a solution for manual linking of the react-native-theme-switch-animation
library in older versions, which is necessary due to the use of the turbo package. Here are the steps for both iOS and Android platforms:
Podfile
with the following line:
pod 'react-native-theme-switch-animation', :path => '../node_modules/react-native-theme-switch-animation'
Modify your android/app/build.gradle file to include:
implementation project(':react-native-theme-switch-animation')
Update your settings.gradle file with:
include ':react-native-theme-switch-animation'
project(':react-native-theme-switch-animation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-theme-switch-animation/android')
MainApplication.java, import and add ThemeSwitchAnimationPackage to the packages list:
import com.themeswitchanimation.ThemeSwitchAnimationPackage;
packages.add(new ThemeSwitchAnimationPackage());
@ThalesBMC that is wild, I remember there was something like yarn link [library-name]
it was used to link native android libs, is that still an option,
Thanks Thales 👌
Anyone having this problem when trying to add the package to a project?
node: v16. React Native: 0.63.4 (I think this is probably the problem)
Error: The package 'react-native-theme-switch-animation' doesn't seem to be linked. Make sure:
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)