python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to catch when screen orientation change in react native with mobx?
Can you explain me the right way to handle orientation changing in react native app with mobX.
For now I have tried make something like this:
@observer
export class ChartSTMWork extends Component {
...
Vladimir
Votes: 0
Answers: 1
How to test the preferred screen orientation
I'm working with a (simplified) widget that sets the screen orientation to "landscape" when initiated and resets it to "portrait" when disposed:
class LandScapeWidget extends State...

Valentin Vignal
Votes: 0
Answers: 1
How to handle a device rotation for AVCaptureVideoPreviewLayer?
I have a simple camera preview implementation:
import SwiftUI
import AVFoundation
struct CameraView: View {
@StateObject var model = CameraModel()
var body: some View {
CameraPreview(...

Denis Sologub
Votes: 0
Answers: 2
How to Parcelize a MutableList in kotlin?
I have an App that lets users drag and draw boxes on a custom view. I want to persist the state of these boxes(list of boxes) across orientation change using onSavedInstanceState(): Parcelable and onR...
Daniel Iroka
Votes: 0
Answers: 1