我正在运行的任何反应本机项目(包括Facebook的示例)在iPad上看起来很奇怪.它没有填满屏幕,一切看起来"太大".(内容的左侧和右侧有2个黑条)
任何帮助都会很棒.谢谢!
有没有办法在反应原生中操纵图像,因此它显示为灰度?我想尝试类似的东西:filter: grayscale(1)
谢谢.
我有3个不同的反应原生组件,我使用导航器在它们之间导航.在我的第一个视图中,我定义了导航器:
<Navigator
ref="nav"
renderScene={@renderScene}
initialRoute={@renderContent(I18n.t("Incidents"))}
configureScene={ ->
transition = Navigator.SceneConfigs.HorizontalSwipeJump
transition.gestures = null
transition
}
/>
Run Code Online (Sandbox Code Playgroud)
如您所见,转换是HorizontalSwipeJump.
@props.navigator.push
component: IncidentScreen
incidentId: incident.id
sceneConfig: -> Navigator.SceneConfigs.FloatFromBottomAndroid
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我正在尝试使用FloatFromBottomAndroid进入视图#3,但是,它无法正常工作.
通过查看RN的源代码,我可以看到navigator.push方法从props获取动画:
var nextAnimationConfigStack = activeAnimationConfigStack.concat([
this.props.configureScene(route),
]);
Run Code Online (Sandbox Code Playgroud)
那我该怎么办?
非常感谢.
我正在尝试实现与本机“笔记”应用程序相同的效果。基本上,我的文字输入覆盖了屏幕的95%,底部有一个小按钮。轻按一次按钮应触发按钮的onPress事件。相反,点击只会使文本输入变得模糊,我必须再次点击按钮才能触发它的onPress事件。
我还想知道即使输入内容模糊也要强制键盘保持打开状态。
谢谢。