Coder Social home page Coder Social logo

react-native-gradient-border's Issues

Export style type

By exporting the style type it will be easier for consumers to build the correct prop when using the library with typescript.

eg add

export type GradientBorderViewStyle = StyleProp<
            GradientBorderViewProps & 
            {paddingLeft?: number, paddingRight?: number, paddingTop?: number, paddingBottom?: number, padding?: number}
        >

Can use internally as needed eg:

export default function GradientBorderView({
    gradientProps,
    ...props
}: Omit<ViewProps, 'style'> &
    {
        style?: GradientBorderViewStyle
    } &
    RequiredGradientBorderProps
) {

Not working with react 18 version

# npm resolution error report

While resolving: [email protected]
Found: [email protected]
node_modules/react
  react@"18.2.0" from the root project
  peer react@">=16" from @react-native-masked-view/[email protected]
  node_modules/@react-native-masked-view/masked-view
    @react-native-masked-view/masked-view@"^0.2.9" from the root project
    peer @react-native-masked-view/masked-view@"^0.2.7" from @good-react-native/[email protected]
    node_modules/@good-react-native/gradient-border
      @good-react-native/gradient-border@"*" from the root project
  peer react@"18.2.0" from [email protected]
  node_modules/react-native
    react-native@"0.72.3" from the root project
    peer react-native@">=0.57" from @react-native-masked-view/[email protected]
    node_modules/@react-native-masked-view/masked-view
      @react-native-masked-view/masked-view@"^0.2.9" from the root project
      peer @react-native-masked-view/masked-view@"^0.2.7" from @good-react-native/[email protected]
      node_modules/@good-react-native/gradient-border
        @good-react-native/gradient-border@"*" from the root project

Could not resolve dependency:
peer react@"^17.0.0" from @good-react-native/[email protected]
node_modules/@good-react-native/gradient-border
  @good-react-native/gradient-border@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Can you please guide me how can i get it work. In my previous project it's working fine.
Thanks

Build source code

Currently getting tsc issues depending on this project. #2
addresses the issues experienced however, if the code is transpired and then published it will avoid the issue happening again in the future.

The library should be published with a /lib directory containing the javascript and type definitions. The package can reference this directory as the entry file and /src can then be excluded from the artefact published to npm.

Either tsc or a bundling tool like webpack/esbuild/rollup can help achieve this

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.