GithubHelp home page GithubHelp logo

ZohoSalesIQ.setThemeColorforiOS() and ZohoSalesIQ.setThemeColorforAndroid() are not functioning in React Native about salesiq-mobilisten-reactnative HOT 3 CLOSED

waseemViwell avatar waseemViwell commented on July 28, 2024
ZohoSalesIQ.setThemeColorforiOS() and ZohoSalesIQ.setThemeColorforAndroid() are not functioning in React Native

from salesiq-mobilisten-reactnative.

Comments (3)

bhahirathan-mb-11956 avatar bhahirathan-mb-11956 commented on July 28, 2024 3

Hi @waseemViwell ,

Thank you for reaching out to us. Please be advised that the setThemeColorForAndroid() API has been deprecated. Instead, you can modify the colors of the elements for the Android SDK by adding the style with the appropriate attribute and value in styles.xml. Specifically, the "colorAccent" attribute can be utilized to change the theme color of our SDK. For further clarification, please refer to the sample snippet provided below.

<resources>
<!--  This works, if syncThemeWithOsForAndroid is set as false for both light and dark mode -->
<style name="Theme.SalesIQ.Base" parent="Theme.SalesIQ.Base.DarkActionBar" >
           <item name="colorAccent">#ff0000</item>
           <item name="siq_toolbar_backgroundcolor">#ff0000</item>
           <item name="siq_forms_toolbar_backgroundcolor">#ff0000</item>
</style>

<!--  This works, if syncThemeWithOsForAndroid is set as true when the device is in dark mode  -->
<style name="Theme.SalesIQ.Base.Dark" parent="Theme.SalesIQ.Dark" >
            <item name="colorAccent">#0000ff</item>
            <item name="siq_toolbar_backgroundcolor">#0000ff</item>
            <item name="siq_forms_toolbar_backgroundcolor">#0000ff</item>
</style>
<!--  This works, if syncThemeWithOsForAndroid is set as true when the device is in light mode  -->
<style name="Theme.SalesIQ.Base.DarkActionBar" parent="Theme.SalesIQ.Light" >
           <item name="colorAccent">#00ff00</item>
           <item name="siq_toolbar_backgroundcolor">#00ff00</item>
           <item name="siq_forms_toolbar_backgroundcolor">#00ff00</item>
</style>
</resources>

For iOS, the .setThemeColorforiOS() API is functional, and also the screenshot you have attached shows that the theme color is changed.
If you have any specific issue, please write back to us at [email protected] if the issue persists, we’ll be happy to assist you.

from salesiq-mobilisten-reactnative.

waseemViwell avatar waseemViwell commented on July 28, 2024 1

from salesiq-mobilisten-reactnative.

venkatesh-ramesh-12517 avatar venkatesh-ramesh-12517 commented on July 28, 2024 1

Hi @waseemViwell

As of now, we do not have support for customizing background colors. However, we have plans to add UI customization support in the future, though we do not have a confirmed timeline at the moment. Rest assured, you will be notified when this feature becomes available for use and when the new version is released. Thank you for your understanding.

Regards,
Venkatesh
Zoho SalesIQ.

from salesiq-mobilisten-reactnative.

Related Issues (20)

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.