Skip to content

Commit

Permalink
Breaking change: Never modify elment's style
Browse files Browse the repository at this point in the history
  • Loading branch information
magicismight committed Dec 28, 2017
1 parent 6801717 commit 75b1f65
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import StaticContainer from 'static-container';
const styles = StyleSheet.create({
container: {
flex: 1
},

offStream: {
position: 'absolute'
}
});

Expand Down Expand Up @@ -63,7 +59,6 @@ AppRegistry.setWrapperComponentProvider(function () {
);
});
this._updatedSiblings = {};

return (
<View style={styles.container}>
<StaticContainer shouldUpdate={false}>
Expand All @@ -81,9 +76,7 @@ export default class {
const id = uuid++;
function update(element, callback) {
triggers.forEach(function (trigger) {
trigger(id, cloneElement(element, {
style: [element.props.style, styles.offStream]
}), callback);
trigger(id, element, callback);
});
};

Expand Down

0 comments on commit 75b1f65

Please sign in to comment.