apentle / react-native-theme

Theme manager for react native project!
https://apentle.github.io/blog/
MIT License
125 stars 12 forks source link

Not working #8

Closed WhatAKitty closed 7 years ago

WhatAKitty commented 7 years ago

Env: RN 0.48.4

theme.add({
  text: {
    backgroundColor: 'white',
  }
})

execute theme.styles:

Excepted Result: {text: {backgroundColor: 'white'}} Actual Result: {text: 3}

I don't understand why it not worked for processed ?.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 6a523ab2198ed08f9314cc343a2b07f60106291d on WhatAKitty:master into 679eb75d8ab93ce1ee20f742a1d4f60968beafc8 on apentle:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 6a523ab2198ed08f9314cc343a2b07f60106291d on WhatAKitty:master into 679eb75d8ab93ce1ee20f742a1d4f60968beafc8 on apentle:master.

doanndd commented 7 years ago

Dear, The result {text: 3} helps react native improving performance while adding this style to multiple element. The raw styles ({backgroundColor: 'white'}) will be loaded back from integer number (3).