GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MIUI Page style display error, style disappears · Issue #28847 · react/react-native

MIUI Page style display error, style disappears #28847

New issue
Copy link
New issue
Copy link
Closed
Closed
MIUI Page style display error, style disappears#28847
Copy link
Labels
Needs: Author FeedbackStaleThere has been a lack of activity on this issue and it may be closed soon.

Description

@maomeiqi
maomeiqi
opened on May 7, 2020
Issue body actions

React Native version:

System:
OS: macOS 10.15.4
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 3.90 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6308749
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Java: Not Found
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
npmGlobalPackages:
react-native: Not Found
react:16.11.0
React Native:0.62.2
SDK:
uildToolsVersion = "29.0.2"
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
excludeAppGlideModule = true
glideVersion = "4.9.0"
Mobile version:
model: MI 8
android:10
MIUI:11.0.6

Description

Where elevation: 4 is set, the shadow will disappear and some text will also disappear

Expected Results

Should be displayed like this
21588833198_ pic_hd
But it is displayed like this
11588833178_ pic_hd

Change the background color of the page to #fffffd or add marginTop: 1 to the outermost layer of this page
This can be displayed normally, but I think it should not be done

Snack, code example, screenshot, or link to a repository:

`import React, {Component} from 'react';
import {Text, View, StyleSheet, Image, Dimensions} from 'react-native';
import {inject, observer} from 'mobx-react';
import PropTypes from 'prop-types';
import Touchable from '../../../components/common/Touchable';
import NavigationBar from '../../../components/common/NavigationBar';
import Toast from '../../../components/common/Toast';
import Http from '../../../utils/Http';
import XPay from 'react-native-puti-pay';
import UserActions from "../../../actions/UserActions";

const coin = require('../../../assets/icon/user/coin.png');
const weChat = require('../../../assets/icon/user/we_chat.png');
const alipay=require('../../../assets/icon/user/alipay.png')
const arrowRight = require('../../../assets/icon/user/arrow_right.png');

const styles = StyleSheet.create({
swiperBox: {
height: 100,
backgroundColor: 'blue',
},
content: {
borderTopColor: '#F2F2F2',
borderTopWidth: 1,
borderBottomColor: '#F2F2F2',
borderBottomWidth: 1,
marginBottom: 10,
marginTop: 5,
paddingVertical: 15,
backgroundColor: '#fff',
shadowColor: '#fff',
elevation: 4,
shadowOffset: {h: 0, w: 0},
shadowOpacity: 0.8,
flexDirection: 'column',
justifyContent: 'center',
},
contentImage: {
width: 25,
height: 25,
// backgroundColor:'red',
marginRight: 15,
},
contentText: {
fontSize: 16,
color: '#666666',
},
});

@Inject('store') @observer
class PayMethod extends Component {
static propTypes = {
navigation: PropTypes.shape({
navigate: PropTypes.func.isRequired,
}).isRequired,
};

static navigationOptions = () => ({
headerShown: false,
headerMode: 'none',
});

constructor(props) {
super(props);
this.state = {
package: props.route.params?.package,
};
}

_alipay(){
const key= Toast.loading('加载中');
Http.postForm('/api/zfb/pay/advanced/order',{package_id: this.state.package.ID}).then(res=>{
if (res.status === 10000) {
XPay.setAlipayScheme('alipay2021001117605249');
XPay.alipay(res.data,(res)=>{
Toast.hide(key);
if (res.resultStatus == 9000) {
Toast.message('支付成功');
UserActions.getUserBalance();
}else{
Toast.message(res.memo);
}
})
}else{
Toast.message('充值失败');
}
})
}

_wxPay() {
const key = Toast.loading('加载中');
Http.postForm('/api/wx/pay/advanced/order', {package_id: this.state.package.ID}).then(res => {
Toast.hide(key);
if (res.status === 10000) {
XPay.setWxId(res.appid);
let params = {
partnerId: res.partner_id,
prepayId: res.prepay_id,
packageValue: res.package,
nonceStr: res.nonce_str,
timeStamp: String(res.time_stamp),
sign: res.sign,
};
XPay.wxPay(params, (res) => {
if (res.errCode == '0') {
Toast.message('支付成功');
UserActions.getUserBalance();
}else if(res.errCode=='-2'){
Toast.message('已取消支付');
}else{
Toast.message('支付出错,联系客服');
}
});
} else {
Toast.message(res.message);
}
}).catch(err => {
Toast.hide(key);
Toast.message('通讯失败');
});
}

render() {
const {
navigation,
} = this.props;
return (
<View style={{
flex:1,
backgroundColor: '#ffffff',
}}
>
<View style={{
borderTopWidth: 1,
borderTopColor: '#F2F2F2',
marginBottom: 10,
marginTop:50,
paddingVertical: 15,
backgroundColor: '#fff',
shadowColor: '#fff',
elevation: 4,
shadowOffset: {h: 0, w: 0},
shadowOpacity: 0.8,
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',

    }}
    >
      <Image
        source={coin}
        style={{
          marginBottom: 10,
        }}
      />
      <Text style={{fontSize: 15, color: '#666666', marginBottom: 6}}>购买:{this.state.package.amount}</Text>
      <Text style={{fontSize: 15, color: '#666666'}}>付款:{Number(this.state.package.price / 100).toFixed(2)}元</Text>
    </View>
    <Text style={{
      marginLeft: 30,
      fontSize: 14,
      color: '#999999',
      marginVertical: 10,
    }}
    >
      使用一下方式支付:
    </Text>

    <View style={styles.content}>
      <Touchable
        onPress={() => {
          this._wxPay();
        }}
        delayPress={300}
        style={{
          flexDirection: 'row',
          alignItems: 'center',
          justifyContent: 'space-between',
          borderBottomWidth: 1,
          borderBottomColor: '#F2F2F2',
          marginHorizontal: 30,
          paddingBottom: 15,
        }}
      >
        <View style={{
          flexDirection: 'row',
          alignItems: 'center',
        }}
        >
          <Image
            source={weChat}
            style={styles.contentImage}
          />
          <Text style={styles.contentText}>微信支付</Text>
        </View>
        <Image
          source={arrowRight}
        />
      </Touchable>
      <Touchable
        onPress={()=>{
          this._alipay()
        }}
        delayPress={300}
        style={{
          flexDirection: 'row',
          alignItems: 'center',
          justifyContent: 'space-between',
          marginHorizontal: 30,
          paddingTop: 15,
        }}
      >
        <View style={{
          flexDirection: 'row',
          alignItems: 'center',
        }}
        >
          <Image
            source={alipay}
            style={styles.contentImage}
          />
          <Text style={styles.contentText}>支付宝支付</Text>
        </View>
        <Image
          source={arrowRight}
        />
      </Touchable>
    </View>
    <Text style={{
      fontSize: 11,
      color: '#999999',
      paddingTop: 5,
      marginLeft: 30,
    }}
    >
      注:充值金额不可提现
    </Text>
  </View>
);

}
}
export default PayMethod;`

Reacted by maomeiqi
Reacted by maomeiqi
Reacted by maomeiqi
Reacted by maomeiqi
Reacted by maomeiqi
Reacted by maomeiqi
Reacted by maomeiqi

Activity

  1. maomeiqi
    added
    Needs: Triage 🔍
    on May 7, 2020
  2. react-native-bot
    added
    Needs: Author Feedback
    Needs: Environment InfoPlease run `react-native info` and edit your issue with that command's output.
    and removed
    Needs: Triage 🔍
    on May 7, 2020
  3. github-actions commented on May 7, 2020

    @github-actions
    github-actionsBot
    on May 7, 2020
    More actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  4. maomeiqi commented on May 7, 2020

    @maomeiqi
    maomeiqi
    on May 7, 2020
    Author
    More actions

    info Fetching system and libraries information...
    System:
    OS: macOS 10.15.4
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 3.90 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
    Binaries:
    Node: 12.16.2 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
    Watchman: Not Found
    Managers:
    CocoaPods: 1.9.1 - /usr/local/bin/pod
    SDKs:
    iOS SDK:
    Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK: Not Found
    IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6308749
    Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
    Languages:
    Java: Not Found
    Python: 2.7.16 - /usr/bin/python
    npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    npmGlobalPackages:
    react-native: Not Found

  5. github-actions
    added
    Needs: AttentionIssues where the author has responded to feedback.
    and removed
    Needs: Author Feedback
    on May 7, 2020
  6. maomeiqi commented on May 7, 2020

    @maomeiqi
    maomeiqi
    on May 7, 2020
    Author
    More actions

    +1

    Reacted by maomeiqi
  7. react-native-bot
    removed
    Needs: Environment InfoPlease run `react-native info` and edit your issue with that command's output.
    on May 7, 2020
  8. maomeiqi commented on May 7, 2020

    @maomeiqi
    maomeiqi
    on May 7, 2020
    Author
    More actions

    +2

  9. maomeiqi commented on May 8, 2020

    @maomeiqi
    maomeiqi
    on May 8, 2020
    Author
    More actions

    Did I upload anything less?

  10. chrisglein commented on May 13, 2020

    @chrisglein
    chrisglein
    on May 13, 2020
    More actions

    There seem to be issues with the environment info you've provided. For example:

    react: Not Found
    react-native: Not Found
    
  11. chrisglein
    added
    Needs: Environment InfoPlease run `react-native info` and edit your issue with that command's output.
    and removed
    Needs: AttentionIssues where the author has responded to feedback.
    on May 13, 2020
  12. github-actions commented on May 13, 2020

    @github-actions
    github-actionsBot
    on May 13, 2020
    More actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  13. github-actions
    added
    Needs: Author Feedback
    on May 13, 2020
  14. react-native-bot
    removed
    Needs: Environment InfoPlease run `react-native info` and edit your issue with that command's output.
    on May 13, 2020
  15. stale commented on Aug 16, 2020

    @stale
    staleBot
    on Aug 16, 2020
    More actions

    Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

  16. stale
    added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Aug 16, 2020
  17. stale commented on Aug 23, 2020

    @stale
    staleBot
    on Aug 23, 2020
    More actions

    Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

  18. stale
    closed this as completedon Aug 23, 2020
  19. react
    locked as resolved and limited conversation to collaborators on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.