Giter VIP home page Giter VIP logo

react-native-loading-placeholder's Introduction

Hi there ๐Ÿ‘‹

I'm a Full-Stack Developer working in Novi Sad, Serbia.

Started as a web developer and used many frameworks as they were most popular from Vanilla JS, jQuery, Backbone.js, Angular.js to React.js.

Early React Native adopter. Shipped 4 apps to the stores.

Improving DevOps knowledge by learning Terraform/Kubernetes/AWS.

Improving system design knowledge.

Excited about serverless.

I am working with 3rd party teams in order to guide them on they road for better React.js/React Native development.

Feel free to ping me about software development or Consulting.

  • ๐Ÿ”ญ Iโ€™m currently working on serverless project by using Node.js, AWS services and Serverless Framework
  • Languages/tools: JavaScript, TypeScript, React.js, React Native, Node.js, Spring Boot, SQL, Solidity...
  • ๐ŸŒฑ Iโ€™m currently learning about servereless technologies: Lambda, Api Gateway, DynamoDB, AppSync, Cognito, Step Functions, CDK
  • AWS SAA-C02 Certified
  • ๐Ÿ’ฌ Ask me about anything, I am happy to help.
  • ๐Ÿ“ซ How to reach me: https://twitter.com/Zeljko_Markovic

react-native-loading-placeholder's People

Contributors

ferrannp avatar sonnn avatar tiberiumihai avatar zeljkox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-loading-placeholder's Issues

CRNA error

Doesn't work with create-react-native-app that uses Expo.
The issue seems to coming from react-native-linear-gradient which has native dependencies.
#157 might help.

Publish to npm

Hey guys,

This is a great library! Thanks for all the hard work.

Would you mind publishing your latest changes to npm?

Thank you!

Animation not looping

<PlaceholderContainer
   style={styles.placeholderContainer}
   animatedComponent={<Gradient />}
   duration={1000}
   delay={1000}
>

I have used the same example, but the animation runs one time and doesn't run again.

Animation direction

Do you have a prop to change animation direction? I did the following because I didn't see any.

type PlaceholderContainerProps = { duration: number, delay: number, style: Object, animatedComponent: React.Element<*>, loader: Function, replace: boolean, rtl: boolean };

and

_setAnimationPositions = (): void => {
    const {
      ContainerComponent,
      AnimatedComponent,
      isContainerComponentMeasured,
      isAnimatedComponentMeasured
    } = this.state;
    const {rtl} = this.props;
    if (!isContainerComponentMeasured || !isAnimatedComponentMeasured) {
      return;
    }
    const startPosition = rtl ? (ContainerComponent.x + ContainerComponent.width + AnimatedComponent.width) : -(ContainerComponent.x + AnimatedComponent.width);
    const stopPosition = rtl ? -(ContainerComponent.x + AnimatedComponent.width) : (ContainerComponent.x + ContainerComponent.width + AnimatedComponent.width);
    this.setState(
      () => ({
        startPosition,
        stopPosition
      }),
      () => {
        this.position.setValue(startPosition);
        this._startAndRepeat();
      }
    );

  };

I don't know whether this is right but got my job done

How to ensure multiple PlaceHolderContainers animate in sync?

Thanks for a cool project! I just pulled this into my own app and copy/pasted a couple of your example components in a row:

<PlaceholderContainer
  style={styles.placeholderContainer}
  animatedComponent={<Gradient />}
  duration={1000}
  delay={1000}
  key={`loading-ui-placeholder-${id}`}
>
  <View style={{ flexDirection: 'row' }}>
    <Placeholder style={[styles.placeholder, { width: 50, height: 50 }]} />
    <View
      style={{
        flexDirection: 'column',
        width: '100%',
        alignItems: 'center',
        justifyContent: 'center',
      }}
    >
      <Placeholder
        style={[
          styles.placeholder,
          {
            width: '50%',
            height: 10,
          },
        ]}
      />
      <Placeholder
        style={[
          styles.placeholder,
          {
            width: '35%',
            height: 7,
          },
        ]}
      />
    </View>
  </View>

  <Placeholder
    style={[styles.placeholder, { marginTop: 20, width: '80%' }]}
  />
  <Placeholder style={[styles.placeholder, { width: '90%' }]} />
  <Placeholder style={[styles.placeholder, { width: '50%' }]} />
</PlaceholderContainer>

Obviously, just one of these animates nicely with no problems. After putting two in a row, they begin to animate simultaneously, but after several cycles become out of sync, and look strange next to each other. I can upload a gif if necessary but I think it's pretty self explanatory.

Is there any way we can provide the animation lifecycle directly, instead of passing these millisecond props? It seems something is offsetting animation.

Not running smoothly on Android

Hey!

I'm using this library for the same purpose.
On iOS it looks really great, but on Android it doesn't look good - the gradient looses shape, and it looks like a gray line with a trail that's moving.

Did anyone encounter this issue too?

Thanks!

This is how it looks on an Android device:
screen shot 2017-10-23 at 18 54 07

This is on iPhone:
photo_2017-10-23_18-55-50

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.