Skip to content

Commit 2471165

Browse files
author
soliury
committed
refactor: wrapper toast with view
1 parent 4391c0a commit 2471165

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/layouts/Utils.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ class Utils extends Component {
2828

2929
render() {
3030
return (
31-
<Toast ref={ (view)=> this.toast=view } style={styles.container}/>
31+
<View style={styles.container}>
32+
<Toast ref={ (view)=> this.toast=view }/>
33+
</View>
3234
);
3335
}
3436
}
3537

3638

3739
const styles = StyleSheet.create({
3840
container: {
39-
position: 'absolute'
41+
position: 'absolute',
42+
top: 0,
43+
left: 0
4044
}
4145
});
4246

0 commit comments

Comments
 (0)