Skip to content

Commit

Permalink
feat(fsengagement): allow EngagementComp to accept style
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and bweissbart committed Jul 24, 2019
1 parent dc973bd commit 2671b64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/fsengagement/src/EngagementComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import {
ListRenderItem,
Platform,
RefreshControl,
StyleProp,
StyleSheet,
Text,
TouchableOpacity,
View
View,
ViewStyle
} from 'react-native';
import { EngagementService } from './EngagementService';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -108,6 +110,7 @@ export interface EngagementScreenProps extends ScreenProps, EmitterProps {
autoplay?: boolean;
autoplayDelay?: number;
autoplayInterval?: number;
containerStyle?: StyleProp<ViewStyle>;
}
export interface EngagementState {
scrollY: Animated.Value;
Expand Down Expand Up @@ -394,9 +397,9 @@ export default function(
}

render(): JSX.Element {
const { backButton, json, navBarTitle } = this.props;
const { backButton, containerStyle, json, navBarTitle } = this.props;
return (
<View style={styles.container}>
<View style={[styles.container, containerStyle]}>
{this.renderScrollView()}
{backButton &&
<TouchableOpacity onPress={this.onBackPress} style={styles.backButton}>
Expand Down

0 comments on commit 2671b64

Please sign in to comment.