talalmajali / react-native-countdown-component

React Native CountDown
MIT License
271 stars 234 forks source link

Padding, Margin #17

Closed tigpalmas closed 5 years ago

tigpalmas commented 5 years ago

is it possible to change padding and margin of the component ? i tried add style={{margin: 0, padding: 0}} unsuccessfully

voroncv commented 5 years ago

Go to directory /node_modules/react-native-countdown-component/index.js

talalmajali commented 5 years ago

@tigpalmas can you please show me an example for what you exactly you need to do, because margin and padding are working fine with me Thanks

tigpalmas commented 5 years ago

@talalmajali im trying to achieve less space between the counter and my other components countdownimage. I tried to edit the index file and the only thing that works was: digitCont: { borderRadius: 5, marginHorizontal: -5, marginVertical: -15, alignItems: 'center', justifyContent: 'center', },

talalmajali commented 5 years ago

@tigpalmas with version 2.0.0+ you can override the digit style as well as digit text style

lucasfalcaoo commented 5 years ago

@talalmajali I'm trying to set digitStyle padding 0, but it doesn't work. What I'm trying to do is to end the space around the numbers, the red background on the attached file, please help me!

captura de tela 2019-03-07 as 20 35 12
anniewey commented 7 months ago

i managed to get rid of the padding by setting height:'auto' to the digitStyle. Setting 0 to margin and padding doesnt work.

digitStyle={{
                      borderWidth: 2,
                      borderColor: '#1CC625',
                      height:'auto'
                      //padding: 0,
                      //margin: 0,
}}