How to use the react-native-web/dist/modules/applyNativeMethods function in react-native-web

To help you get started, we’ve selected a few react-native-web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taofed / react-web / src / DrawerLayout / DrawerLayout.web.js View on Github external
bottom: 0,
  },
  main: {
    flex: 1,
  },
  overlay: {
    backgroundColor: '#000',
    position: 'absolute',
    top: 0,
    left: 0,
    bottom: 0,
    right: 0,
  },
});

export default applyNativeMethods(DrawerLayout);
github taofed / react-web / src / SegmentedControl / SegmentedControl.web.js View on Github external
firstChild: {
    borderTopLeftRadius: 3,
    borderBottomLeftRadius: 3,
    borderRightWidth: 0,
  },
  otherChild: {
    borderRightWidth: 0,
  },
  lastChild: {
    borderTopRightRadius: 3,
    borderBottomRightRadius: 3,
    borderRightWidth: 1,
  },
});

export default applyNativeMethods(SegmentedControl);
github taofed / react-web / src / ViewPager / ViewPager.web.js View on Github external
offset: 0
        }
      });

      this._scrolling = false;

      this.setState({
        selectedPage: index
      }, () => {
        this.props.onPageSelected && this.props.onPageSelected({nativeEvent: {position: index}});
      });
    });
  }
};

export default applyNativeMethods(ViewPager);
github taofed / react-web / src / ProgressView / ProgressView.web.js View on Github external
progressTint: {
    position: 'absolute',
    left: 0,
    width: 0,
    height: '100%',
    background: '#0079fe',
  },
  progressTrack: {
    position: 'relative',
    width: '100%',
    height: '100%',
    background: '#b4b4b4',
  }
});

export default applyNativeMethods(ProgressView);
github expo / expo / apps / native-component-list / src / screens / AV / Slider.web.tsx View on Github external
touchArea: {
    position: 'absolute',
    backgroundColor: 'transparent',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
  },
  debugThumbTouchArea: {
    position: 'absolute',
    backgroundColor: 'green',
    opacity: 0.5,
  },
});

export default applyNativeMethods(Slider);