The error explains that it expects a variable as integer, and not as a string value.
Example
<BarItem barInterval={'5'} /> is wrong, but <BarItem barInterval={5} /> is correct.
In this case the value marginRight requires a integer to work, because the variable is used in a stylesheet.