react-native-onboarding-screens
Version:
Delightful Onboarding for your React-Native App
18 lines (14 loc) • 393 B
JavaScript
import React from 'react';
import TextButton from './TextButton';
import { BUTTON_SIZE, MARGIN_LEFT, getDefaultStyle } from './util';
const SkipButton = ({ skipLabel, isLight, ...rest }) => (
<TextButton
size={BUTTON_SIZE}
style={{ marginLeft: MARGIN_LEFT }}
textStyle={getDefaultStyle(isLight)}
{...rest}
>
{skipLabel}
</TextButton>
);
export default SkipButton;