JSPM

react-native-border

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q50579F
  • License MIT

A lightweight and customizable border component for React Native. Easily add stylish borders with adjustable color, width, and radius. Perfect for UI enhancements in mobile apps.

Package Exports

  • react-native-border
  • react-native-border/package.json

Readme

react-native-border

A lightweight and customizable border component for React Native. Easily add stylish borders with adjustable color, width, and radius. Perfect for UI enhancements in mobile apps.

Preview

BorderBox Screenshot

Installation

npm install react-native-border

Usage

import BorderBox from 'react-native-border';

import { Text, View } from 'react-native';
import BorderBox from 'react-native-border';

export default function App() {
  return (
    <View style={{ flex: 1, alignItems: 'center' }}>
      <BorderBox
        icon={{
          uri: 'https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Smiley.svg/600px-Smiley.svg.png',
        }}
      >
        <Text>This is inside the bordered box</Text>
      </BorderBox>
      <BorderBox
        icon={require('./right.png')}
        rotationDegrees={{
          top: '0deg',
          right: '90deg',
          bottom: '180deg',
          left: '-90deg',
        }}
      >
        <Text>Custom rotation for each side!</Text>
      </BorderBox>
      <BorderBox
        icon={require('./right.png')}
        rotationDegrees={{
          top: '45deg',
          right: '135deg',
          bottom: '225deg',
          left: '315deg',
        }}
      >
        <Text>Diagonal rotations on each side</Text>
      </BorderBox>
    </View>
  );
}
 

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library