Giter Site home page Giter Site logo

Comments (6)

maxxfrazer avatar maxxfrazer commented on August 19, 2024

@EkaanshArora I don't remember seeing this when I ran it on iOS, have you seen this ever?

from videouikit-reactnative.

EkaanshArora avatar EkaanshArora commented on August 19, 2024

I haven't seen this before, @umairlive490 are you using custom images for the icons? Can you share your config that you're passing to the UIKit?

from videouikit-reactnative.

umairlive490 avatar umairlive490 commented on August 19, 2024

@EkaanshArora No i am not using my own icons.I just used UIKit provided icons and here is my styleProps
const videoStyleProp = {
videoMode: {
max: VideoRenderMode.Hidden,
min: VideoRenderMode.Hidden,
},
localBtnContainer: {
marginVertical: 20,
},
remoteBtnContainer: {
display: 'none'
},
minViewContainer: {
padding: 5,
width: 200
},
minViewStyles: {
height: 200,
width: 200,
}
};

from videouikit-reactnative.

EkaanshArora avatar EkaanshArora commented on August 19, 2024

Hey @umairlive490 I tested out that styling, can you also share your rtcProps as I can't seem to reproduce the error. Can you check if just using the example app causes the same issues for you? We can look into device/os version specific things then as I can't reproduce the issue on my iPhone 12 mini running iOS 14.6.
Using the following code:

import React, {useState} from 'react';
import AgoraUIKit from 'agora-rn-uikit';
import {VideoRenderMode} from 'react-native-agora';

const App = () => {
  const [videoCall, setVideoCall] = useState(true);
  const videoStyleProp = {
    videoMode: {
      max: VideoRenderMode.Hidden,
      min: VideoRenderMode.Hidden,
    },
    localBtnContainer: {
      marginVertical: 20,
    },
    remoteBtnContainer: {
      display: 'none',
    },
    minViewContainer: {
      padding: 5,
      width: 200,
    },
    minViewStyles: {
      height: 200,
      width: 200,
    },
  };
  const rtcProps = {
    appId: '<myAppId>',
    channel: 'test',
  };
  const callbacks = {
    EndCall: () => setVideoCall(false),
  };
  return videoCall ? (
    <AgoraUIKit
      rtcProps={rtcProps}
      callbacks={callbacks}
      styleProps={videoStyleProp}
    />
  ) : (
    <></>
  );
};

export default App;

Works perfectly well for me.
IMG_2356 2

from videouikit-reactnative.

umairlive490 avatar umairlive490 commented on August 19, 2024

@EkaanshArora It doesn't happen every time but some time this issue is occurring.
One more thing i wanted to make minView as square but on iOS it is not becoming square for equal height and width 200*200

from videouikit-reactnative.

EkaanshArora avatar EkaanshArora commented on August 19, 2024

It's hard to help without being able to reproduce the issue. Can you confirm if you see this problem in the production build?

I used your styling (minViewStyles: {height: 200, width: 200}) in the above screenshot, it's running on an iPhone and appears to be square. I'm not sure I follow.

from videouikit-reactnative.

Related Issues (20)

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.