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
float map(float x, float in_min, float in_max, float out_min, float out_max) { | |
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; | |
} |
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
Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] | |
PID: 16989, TID: 8855492, Thread name: com.facebook.react.JavaScript, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 | |
Backtrace: | |
4 Reanimated2Playground 0x000000010dba5b1c _ZN10reanimated22createReanimatedModuleENSt3__110shared_ptrIN8facebook5react11CallInvokerEEE + 140 | |
5 Reanimated2Playground 0x000000010dbe280c _ZN8facebook5react21RETurboModuleProviderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_10shared_ptrINS0_11CallInvokerEEE + 92 | |
6 Reanimated2Playground 0x000000010d6ad31b -[AppDelegate getTurboModule:jsInvoker:] + 75 | |
7 Reanimated2Playground 0x000000010def4ae8 -[RCTTurboModuleManager provideTurboModule:] + 456 | |
8 Reanimated2Playground 0x000000010defcd27 _ZZ49-[RCTTurboModuleManager initWithBridge:delegate:]ENK3$_0clERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE + 455 | |
9 Reanimated2Playgr |
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 from 'react' | |
import { StyleSheet } from 'react-native' | |
import Animated, { | |
Extrapolate, | |
interpolate, | |
useAnimatedStyle | |
} from 'react-native-reanimated' | |
import { colors, metrics } from 'styles'; | |
function clamp(value, lowerBound, upperBound) { |
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/RCTBridgeModule.h> | |
#import <HomeKit/HomeKit.h> | |
#import "React/RCTEventEmitter.h" | |
@interface RCT_EXTERN_MODULE(HomeKitModule, RCTEventEmitter) | |
RCT_EXTERN_METHOD(listHomes: (NSString *)name withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) | |
RCT_EXTERN_METHOD(addAndSetupAccessories: (NSString *)name withResolver:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) |
OlderNewer