- 677 [macOS] Incorrect placement of text cursor indicator in message input if scrolling triggers
- 679 [macOS] Adding an emoji in a message sometimes causes the cursor to move before the emoji
- ??? [both] Incorrect initial size causes views to move and scroll to lag https://stackoverflow.com/questions/74045727/can-i-stop-nsviewrepresentable-layout-lag-for-nstextview
- ??? [both] When a mention is broken down into two lines, the background color spreads over the whole paragraph
- ??? [macOS] Undoing a mention only removes it partially (when undo is turned on)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Example: View { | |
@State private var isWindowActive: Bool = false | |
var body: some View { | |
Text("Is Window Active? \(isWindowActive ? "yes" : "no")") | |
.modifier(WindowStateModifier(isWindowActive: $isWindowActive)) | |
} | |
} | |
struct WindowStateModifier: ViewModifier { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public extension View { | |
func alert(title: String? = "Oops", error: Binding<Error?>) -> some View { | |
alert(isPresented: Binding<Bool>.init(get: { | |
error.wrappedValue != nil | |
}, set: { setVal in | |
if !setVal { | |
error.wrappedValue = nil | |
} | |
})) { | |
Alert(title: Text(title), message: Text(error.wrappedValue?.localizedDescription ?? ""), dismissButton: .cancel()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum MIMEType: String { | |
case jpeg = "image/jpeg" | |
case png = "image/png" | |
case gif = "image/gif" | |
case tiff = "image/tiff" | |
case pdf = "application/pdf" | |
case plainText = "text/plain" | |
case anyBinary = "application/octet-stream" | |
} |
Deploying to mobile isn't as transparent as web: every Connect update nags the user to install it. Continuous delivery like that doesn't offer us the possibility to let builds accumulate until a release, saving user's data and giving us time to rollback when problems arise.
Currently, with our new in-house MDM solution, we don't have a way to control which builds get deployed to Android devices, all builds are consumed by Connect mobile clients as soon as they are uploaded to Nitro and the client downloads them.
- used in
ConnectUrlViewer
, this component is now deprecated in RN and needs to be used from here.
- is now deprecated and must be used from here.
- used in three places:
Connect
(main bookmarks view): checkingisConnected
before allowing pull down to refresh (is this even needed?)Main
: observingconnectionChange
to start/stop messagebus subscription.
Chat
: observingconnectionChange
to start/stop messagebus subscription.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Image, View, ViewPropTypes } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
import FastImage from 'react-native-fast-image'; | |
export default class FastImagePlaceholder extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { loaded: false }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git commit --amend --no-edit && git push --force-with-lease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `~/Library/Android/sdk/` is my ANDROID_HOME environment variable. | |
cd $ANDROID_HOME | |
# Create emulator with 1GB storage on Android SDK 25 called `test` | |
./tools/bin/avdmanager create avd -n test -k "system-images;android-25;google_apis;x86" -b x86 -c 1000M -d 7 -f | |
# Run emulator called `test` | |
./emulator/emulator -avd test | |
# To run on an android emulator - emulator must be already running |