Premature re-render caused by style prop
jwoo92 opened this issue · 0 comments
jwoo92 commented
Following the instructions found in section Using a custom image component of the README, I found a premature re-render being caused by style={[StyleSheet.absoluteFill, imageStyle]}
thanks to why-did-you-render:
FastImageBase
Object {
"FastImageBase": [Function FastImageBase],
}
Re-rendered because of props changes: props.style
Object {
"prev style": Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
undefined,
],
} !== Object {
"next style": Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
undefined,
],
}