aa96bba066
what are you doing there? go away fix recognizer to clear selected text on tap remove jank/hacks update readme remove android stuff (?) don't remove clipped subview on android for selection enable selection of alt text add numberOfLines properly apply container styles handle both selection and expand press events in alt text far better implementation revert link changes revert lightbox changes for now fix file name
33 lines
773 B
Swift
33 lines
773 B
Swift
import ExpoModulesCore
|
|
|
|
public class ExpoUITextViewModule: Module {
|
|
public func definition() -> ModuleDefinition {
|
|
Name("ExpoSelectableText")
|
|
|
|
View(ExpoUITextView.self) {
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
Children should have parity with React Native text props. The difference is that we will use the text prop for the text rather than getting it from children.
|
|
*/
|
|
public class ExpoUITextViewChildModule: Module {
|
|
public func definition() -> ModuleDefinition {
|
|
Name("ExpoTextChild")
|
|
|
|
View(ExpoUITextViewChild.self) {
|
|
Events("onTextPress")
|
|
|
|
Prop("text") { (view: ExpoUITextViewChild, prop: String) in
|
|
view.text = prop
|
|
}
|
|
|
|
Prop("textStyle") { (view: ExpoUITextViewChild, prop: TextStyle) in
|
|
view.style = prop
|
|
}
|
|
}
|
|
}
|
|
}
|