Giter Site home page Giter Site logo

jafar-jabr / react-native-hexagon Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 466 KB

License: MIT License

Java 66.56% JavaScript 2.07% Ruby 3.32% Starlark 0.68% CMake 0.31% C++ 8.23% C 0.12% Objective-C 3.01% Objective-C++ 5.02% TypeScript 2.30% Swift 8.37%

react-native-hexagon's Introduction

react-native-hexagon

hexagon image for react native apps.

Installation

npm install react-native-hexagon

Usage

import { HexagonView } from 'react-native-hexagon';

// ...

export default function App() {
  const imgSource = {
    uri: 'https://picsum.photos/200/300.jpg',
    borderColor: '#d3d363',
    borderWidth: 5,
    cornerRadius: 16,
  };
  return (
    <View style={styles.container}>
      <HexagonView style={styles.avatar} source={imgSource} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  avatar: {
    height: 232,
    width: 232,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

image

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

react-native-hexagon's People

Contributors

jafar-jabr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

react-native-hexagon's Issues

ios build error

截屏2024-03-08 14 59 29
Android build is not a problem, iOS dev is not a problem, there is an issue exporting IPA using xcode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.