In React you can clearly create an object and assign it as an inline style. i.e.. mentioned below.
var divStyle = {
If you're using React Native, you can use the array notation:
Check out my detailed blog post about this.