setNewState causes multiple setState which in turn causes multiple renders
changed _applyAlertStyleSheet and _changeOffsetByPosition function accordingly, pass state object around and have setState called once at the end.
when rendering if this.state.titleColor is not set not set color
setNewState causes multiple setState which in turn causes multiple renders changed _applyAlertStyleSheet and _changeOffsetByPosition function accordingly, pass state object around and have setState called once at the end.
when rendering if this.state.titleColor is not set not set color