INNER CODE UNIT · JavaScript

Onboarding

jfilter/react-native-onboarding-swiper · src/index.js:26

class Onboarding extends Component {
  constructor(props) {
    super(props);

    this.state = {
      currentPage: props.currentPage != null ? props.currentPage : 0,
      previousPage: null,
      width: null,
      height: null,
      backgroundColorAnim: new Animated.Value(0),
    };

    this._dragStartOffset = 0;
  }

  componentDidUpdate(prevProps) {
    if (
      typeof this.props.currentPage === 'number' &&

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…