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