Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tab1 extends Component {
return (
<View flex padding-20>
<Image
style={StyleSheet.absoluteFillObject}
style={StyleSheet.absoluteFill}
overlayType="top"
source={{
uri:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Tab2 extends Component {
return (
<View flex padding-20>
<Image
style={StyleSheet.absoluteFillObject}
style={StyleSheet.absoluteFill}
overlayType="top"
source={{
uri:
Expand Down
2 changes: 1 addition & 1 deletion docs/foundation/modifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Easily control component positioning with our absolute position modifiers:
### Stretch Options
- `absH` - Position absolutely and stretch horizontally
- `absV` - Position absolutely and stretch vertically
- `absF` - Position absolutely and fill the entire parent container (equivalent to `StyleSheet.absoluteFillObject`)
- `absF` - Position absolutely and fill the entire parent container (equivalent to `StyleSheet.absoluteFill`)

```jsx
<View absL>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-ui-lib/src/commons/modifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export function getAlteredModifiersOptions(currentProps: any, nextProps: any) {

const styles = StyleSheet.create({
absolute: {position: 'absolute'},
absoluteFill: StyleSheet.absoluteFillObject,
absoluteFill: StyleSheet.absoluteFill,
absoluteTop: {position: 'absolute', top: 0},
absoluteBottom: {position: 'absolute', bottom: 0},
absoluteLeft: {position: 'absolute', left: 0},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function createStyles({height, backgroundColor}: any) {
height
},
absoluteContainer: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
top: undefined,
backgroundColor,
...Shadows.white40.top
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default AnimatedImage;

const styles = StyleSheet.create({
loader: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
justifyContent: 'center'
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class AnimatedScanner extends BaseComponent {
const {isDone, animatedProgress} = this.state;

return (
<View style={[{...StyleSheet.absoluteFillObject}, containerStyle]}>
<View style={[{...StyleSheet.absoluteFill}, containerStyle]}>
<Animated.View
style={[
this.styles.container,
Expand All @@ -100,12 +100,12 @@ export default class AnimatedScanner extends BaseComponent {
function createStyles() {
return StyleSheet.create({
container: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
backgroundColor: Colors.white,
opacity: 0.9
},
scanner: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
borderWidth: StyleSheet.hairlineWidth,
borderColor: Colors.grey50
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-ui-lib/src/components/avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const Avatar = forwardRef<any, AvatarProps>((props: AvatarProps, ref: React.Forw
}, [props]);

const _imageStyle = useMemo(() => {
return [_baseContainerStyle, StyleSheet.absoluteFillObject, imageStyle];
return [_baseContainerStyle, StyleSheet.absoluteFill, imageStyle];
}, [_baseContainerStyle, imageStyle]);

const renderImage = () => {
Expand Down Expand Up @@ -382,7 +382,7 @@ const Avatar = forwardRef<any, AvatarProps>((props: AvatarProps, ref: React.Forw

const styles = StyleSheet.create({
initialsContainer: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
alignItems: 'center',
justifyContent: 'center',
borderRadius: BorderRadiuses.br100,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-ui-lib/src/components/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ function createStyles({width, height, borderRadius, selectionOptions}: CardProps
shadowOffset: {height: 5, width: 0}
},
blurView: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
borderRadius: brRadius
},
selectedBorder: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
borderRadius: DEFAULT_BORDER_RADIUS,
borderWidth: selectionOptionsWithDefaults.borderWidth,
borderColor: selectionOptionsWithDefaults.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function createStyles({color = DEFAULT_COLOR}) {
overflow: 'hidden'
},
transparentImage: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
width: DEFAULT_SIZE,
height: DEFAULT_SIZE,
borderWidth: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function createStyles() {
backgroundColor: Colors.grey30
},
absolutePosition: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
bottom: undefined
},
container: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,11 @@ const styles = StyleSheet.create({
overflow: 'hidden'
},
leftActions: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row'
},
rightActions: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse'
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ const styles = StyleSheet.create({
lineHeight: messageLineHeight
},
touchableOverlay: {
...StyleSheet.absoluteFillObject
...StyleSheet.absoluteFill
}
});
export {FeatureHighlight}; // for tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const styles = StyleSheet.create({
flexWrap: 'wrap'
},
overlayContainer: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
alignItems: 'center',
justifyContent: 'center'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class Hint extends Component<HintProps, HintState> {
testID={`${testID}.overlay`}
>
{onBackgroundPress && (
<TouchableWithoutFeedback style={StyleSheet.absoluteFillObject} onPress={onBackgroundPress}>
<TouchableWithoutFeedback style={StyleSheet.absoluteFill} onPress={onBackgroundPress}>
<View flex/>
</TouchableWithoutFeedback>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-ui-lib/src/components/hint/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Hint = (props: HintProps) => {
testID={`${testID}.overlay`}
>
{onBackgroundPress && (
<TouchableWithoutFeedback style={StyleSheet.absoluteFillObject} onPress={onBackgroundPress}>
<TouchableWithoutFeedback style={StyleSheet.absoluteFill} onPress={onBackgroundPress}>
<View flex/>
</TouchableWithoutFeedback>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const styles = StyleSheet.create({
flex: 1
},
overlayContainer: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
backgroundColor: Colors.rgba(Colors.white, 0.85),
zIndex: 100
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function MaskedInput(props: MaskedInputProps, ref: ForwardedRef<any>) {

const styles = StyleSheet.create({
hiddenInput: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
zIndex: 1,
color: 'transparent',
backgroundColor: 'transparent',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Modal extends Component<ModalProps> {

const styles = StyleSheet.create({
touchableOverlay: {
...StyleSheet.absoluteFillObject
...StyleSheet.absoluteFill
},
fill: {
flex: 1
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-ui-lib/src/components/overlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Overlay extends PureComponent<OverlayTypes> {

const styles = StyleSheet.create({
container: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
width: Constants.isWeb ? '100%' : undefined
},
top: {
Expand All @@ -142,7 +142,7 @@ const styles = StyleSheet.create({
height: '40%'
},
customContent: {
...StyleSheet.absoluteFillObject
...StyleSheet.absoluteFill
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ const styles = StyleSheet.create({
right: 0
},
touchArea: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
backgroundColor: 'transparent'
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ export default function TabPage({
}

const styles = StyleSheet.create({
page: StyleSheet.absoluteFillObject
page: StyleSheet.absoluteFill
});
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const styles = StyleSheet.create({
right: 0
},
touchArea: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
backgroundColor: Colors.transparent
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const HighlighterOverlayView = (props: HighlighterOverlayViewProps) => {
>
<HighlighterViewNativeComponent
highlightFrame={highlightFrame}
style={[style, {...StyleSheet.absoluteFillObject, backgroundColor: 'transparent'}]}
style={[style, {...StyleSheet.absoluteFill, backgroundColor: 'transparent'}]}
overlayColor={overlayColorToUse}
borderRadius={borderRadius}
strokeColor={strokeColorToUse}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const styles = StyleSheet.create({
trackingToolbarContainer: {
...Platform.select({
ios: {
...StyleSheet.absoluteFillObject,
...StyleSheet.absoluteFill,
top: undefined
}
})
Expand Down