小编Cri*_* Tr的帖子

打开时testFlight上的iOS崩溃

在测试战斗中运行应用程序时,它会在打开时崩溃.如果直接在模拟器或设备上测试,该应用程序运行良好.

我做了清理,存档并再次上传应用程序,没有任何区别.有效体系结构仅设置为arm64

这是控制台中的错误

Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "org.mydomain.name";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 677;
SBMostElevatedStateForProcessID = 8;
}
Run Code Online (Sandbox Code Playgroud)

该应用程序是以反应原生的方式构建的

反应原生环境信息:

System:
  OS: macOS High Sierra 10.13.6
  CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  Memory: 3.59 GB / 16.00 GB
  Shell: 3.2.57 - /bin/bash
Binaries:
  Node: 8.9.3 - /usr/local/bin/node
  npm: 6.1.0 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
  iOS SDK:
    Platforms: iOS 12.0, macOS 10.14, tvOS …
Run Code Online (Sandbox Code Playgroud)

javascript xcode ios testflight react-native

6
推荐指数
1
解决办法
1399
查看次数

如何重设本机动画?

我已经使用做了一些简单的动画,Animated反应本土 第一onPress后如预期的动画作品,但我无法弄清楚如何重置,以使其成为下一个水龙头工作。

constructor(props) {
    super(props);
    this.spinValue = new Animated.Value(0);
    // Second interpolate beginning and end values (in this case 0 and 1)
    this.spin = this.spinValue.interpolate({
        inputRange: [0, 1, 2, 3, 4],
        outputRange: ['0deg', '4deg', '0deg', '-4deg', '0deg']
    });
}

handlePress() {
    // First set up animation 
    Animated.timing(
        this.spinValue,
        {
            toValue: 4,
            duration: 300,
        }
    ).start();
}
Run Code Online (Sandbox Code Playgroud)

并在渲染

<TouchableWithoutFeedback onPress={() => { this.handlePress(); }} >
                    <Animated.Image
                        source={someImg}
                        style={{ height: undefined, width: undefined, flex: 1, transform: [{ rotate: this.spin …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native

4
推荐指数
1
解决办法
3585
查看次数

标签 统计

react-native ×2

ios ×1

javascript ×1

reactjs ×1

testflight ×1

xcode ×1