Coder Social home page Coder Social logo

Comments (4)

WadhahEssam avatar WadhahEssam commented on June 14, 2024 2

@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 👌

from react-native-theme-switch-animation.

ThalesBMC avatar ThalesBMC commented on June 14, 2024 1

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.

from react-native-theme-switch-animation.

ThalesBMC avatar ThalesBMC commented on June 14, 2024 1

@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:

iOS:

  1. Update your Podfile with the following line:
    pod 'react-native-theme-switch-animation', :path => '../node_modules/react-native-theme-switch-animation'
    

Android:

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());

from react-native-theme-switch-animation.

WadhahEssam avatar WadhahEssam commented on June 14, 2024

that is very old version, it could be the problem, but are you sure you did the pod install step?

from react-native-theme-switch-animation.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.