Giter Site home page Giter Site logo

Comments (8)

gtl-himanshu avatar gtl-himanshu commented on August 20, 2024 3
const customStyles = {
    labelAlign: 'flex-start', // <-- add this property to the custom styles object
};

other type {"center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined}

from react-native-step-indicator.

24ark avatar 24ark commented on August 20, 2024 1

Can you try flex-start or flex-end and see if it works.

from react-native-step-indicator.

gtiongco95 avatar gtiongco95 commented on August 20, 2024 1

@ddsr17 it's located on line 287 of the StepIndicator.js file. It has been updated by the repo owner so it should just work now for you (:

from react-native-step-indicator.

rdgomt avatar rdgomt commented on August 20, 2024

Same here

from react-native-step-indicator.

amanjuneja3012 avatar amanjuneja3012 commented on August 20, 2024

same here

from react-native-step-indicator.

ddsr17 avatar ddsr17 commented on August 20, 2024

Still doesn't work

from react-native-step-indicator.

gtiongco95 avatar gtiongco95 commented on August 20, 2024

The fix was in the line { alignItems: this.state.customStyles.labelAlign } where state was omitted. However, the values left and right only work for ios. If you want it to work with android as well you will need to use flex-start and flex-end.

from react-native-step-indicator.

ddsr17 avatar ddsr17 commented on August 20, 2024

@gtiongco95 Could you elaborate a bit, where exactly is this { alignItems: this.state.customStyles.labelAlign } to be placed?

from react-native-step-indicator.

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.