Skip to content

[BUG] - Why are the plus minus buttons not working. Also they don't fit properly in the view. #65

Description

@codeiskool

Here is the code of my app.

When clicking the plus and minus values the ControlValueChange function of my component not getting called? Spent two hours to find the issue but couldn't find why.

I am testing my app in expo via webbrowser.

<View style={{flex:1,justifyContent: "center"}}>
                        <NumericInput 
                            //initValue={10}
                            value={value} 
                            onChange={ControlValueChange} 
                            onLimitReached={(isMin, msg) => console.log(isMin, msg)} 
                            totalWidth={80} 
                            totalHeight={30} 
                            //iconSize={10} 
                            step={1} 
                            minValue={0}
                            //type='up-down'  
                            valueType="integer" 
                            //rounded 
                            editable={true} 
                            textColor="#B0228C" 
                            iconStyle={{ color: "white", justifyContent: 'space-between', alignItems: 'center',}} 
                            rightButtonBackgroundColor="#18c2ef" 
                            leftButtonBackgroundColor="#ff8080" 
                            //containerStyle= {{height: 30, width: 80, justifyContent: 'space-between', alignItems: 'center', backgroundColor: '#F5FCFF',}}
                            inputStyle= {{height: 30, width: 80,  justifyContent: 'space-between', alignItems: 'center',}}
                            //extraTextInputProps = {{height: 30, width: 80, justifyContent: 'space-between', alignItems: 'center', backgroundColor: '#F5FCFF',}}
                        /> 
                    </View>

Enviorment (please complete the following information):

  • Version: [e.g. 22]

  • React Native version: [eg. 0.59]

  • Device: [e.g. iPhone6] (mention if using emulator)

  • Device OS: [e.g. iOS8.1]

    "expo": "^36.0.2",
    "expo-constants": "^9.0.0",
    "expo-image-manipulator": "^8.1.0",
    "expo-image-picker": "^8.1.0",
    "expo-linear-gradient": "^8.1.0",
    "import": "^0.0.6",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "~0.61.4",

Also my plus and minus buttons are not alligning.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions