src/components/library/FloatingHeading/index.js
import { Text } from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';
const FloatingHeading = ({ style, children, ...rest }) => (
<Text
style={[
{
fontSize: 15,
fontWeight: '600',
// textAlign: 'center',
// color: secondaryColor,
},
style,
]}
{...rest}
>
{children}
</Text>
);
FloatingHeading.propTypes = {
style: PropTypes.any,
children: PropTypes.any,
};
export default FloatingHeading;