Skip to content

Commit

Permalink
Merge pull request #500 from stereodenis/patch-1
Browse files Browse the repository at this point in the history
StyleSheet.absoluteFillObject
  • Loading branch information
Spike Brehm committed Aug 30, 2016
2 parents bc8084b + 9be72f1 commit ea31338
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 160 deletions.
12 changes: 2 additions & 10 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,14 @@ If you have a blank map issue, ([#118](https://github.com/lelandrichardson/react
...
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
height: 400,
width: 400,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
});
Expand Down
6 changes: 1 addition & 5 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ const App = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
Expand Down
12 changes: 2 additions & 10 deletions example/examples/AnimatedMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,12 @@ const AnimatedMarkers = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
flex: 1,
Expand Down
12 changes: 2 additions & 10 deletions example/examples/AnimatedViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,7 @@ const AnimatedViews = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
itemContainer: {
backgroundColor: 'transparent',
Expand All @@ -406,11 +402,7 @@ let styles = StyleSheet.create({
},
map: {
backgroundColor: 'transparent',
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
...StyleSheet.absoluteFillObject,
},
item: {
width: ITEM_WIDTH,
Expand Down
12 changes: 2 additions & 10 deletions example/examples/Callouts.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,12 @@ const Callouts = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
flex: 1,
Expand Down
12 changes: 2 additions & 10 deletions example/examples/DefaultMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,12 @@ const DefaultMarkers = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/DisplayLatLng.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,12 @@ const DisplayLatLng = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/DraggableMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,12 @@ const MarkerTypes = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
});

Expand Down
6 changes: 1 addition & 5 deletions example/examples/EventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ const DisplayLatLng = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
Expand Down
12 changes: 2 additions & 10 deletions example/examples/FitToSuppliedMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,12 @@ const FocusOnMarkers = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
});

Expand Down
12 changes: 2 additions & 10 deletions example/examples/LoadingMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,12 @@ const LoadingMap = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/MarkerTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,12 @@ const MarkerTypes = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
marker: {
marginLeft: 33,
Expand Down
12 changes: 2 additions & 10 deletions example/examples/Overlays.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,12 @@ const Overlays = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
flex: 1,
Expand Down
12 changes: 2 additions & 10 deletions example/examples/PolygonCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,12 @@ const DisplayLatLng = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/PolylineCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,12 @@ const PolylineCreator = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/TakeSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,12 @@ const MarkerTypes = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down
12 changes: 2 additions & 10 deletions example/examples/ViewsAsMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,12 @@ const DisplayLatLng = React.createClass({

let styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
justifyContent: 'flex-end',
alignItems: 'center',
},
map: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
...StyleSheet.absoluteFillObject,
},
bubble: {
backgroundColor: 'rgba(255,255,255,0.7)',
Expand Down

0 comments on commit ea31338

Please sign in to comment.