/*
 * @Author: codingfly
 * @Description:
 * @Date: 2022-02-06 12:37:24
 * @LastEditTime: 2022-02-24 08:01:59
 * @FilePath: \remaxui\src\rpx-to-px\index.tsx
 */
import screenWidth from '../screen-width';
export default (function(rpx) {
  return (
    ((screenWidth / 750) * rpx) /
    (process.env.REMAX_PLATFORM === 'wechat' ? screenWidth / 750 : 1)
  );
});
