- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
#ifdef RCT_NEW_ARCH_ENABLED
|
|
|
|
#import "RNGestureHandlerButtonComponentView.h"
|
|
|
|
#import <React/RCTConversions.h>
|
|
#import <React/RCTFabricComponentsPlugins.h>
|
|
|
|
#import <react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h>
|
|
#import <react/renderer/components/rngesturehandler_codegen/EventEmitters.h>
|
|
#import <react/renderer/components/rngesturehandler_codegen/Props.h>
|
|
#import <react/renderer/components/rngesturehandler_codegen/RCTComponentViewHelpers.h>
|
|
|
|
#import "RNGestureHandlerButton.h"
|
|
|
|
using namespace facebook::react;
|
|
|
|
@interface RNGestureHandlerButtonComponentView () <RCTRNGestureHandlerButtonViewProtocol>
|
|
@end
|
|
|
|
@implementation RNGestureHandlerButtonComponentView {
|
|
RNGestureHandlerButton *_buttonView;
|
|
}
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
{
|
|
if (self = [super initWithFrame:frame]) {
|
|
static const auto defaultProps = std::make_shared<const RNGestureHandlerButtonProps>();
|
|
_props = defaultProps;
|
|
_buttonView = [[RNGestureHandlerButton alloc] initWithFrame:self.bounds];
|
|
|
|
self.contentView = _buttonView;
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
#pragma mark - RCTComponentViewProtocol
|
|
|
|
+ (ComponentDescriptorProvider)componentDescriptorProvider
|
|
{
|
|
return concreteComponentDescriptorProvider<RNGestureHandlerButtonComponentDescriptor>();
|
|
}
|
|
|
|
- (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &)oldProps
|
|
{
|
|
const auto &newProps = *std::static_pointer_cast<const RNGestureHandlerButtonProps>(props);
|
|
|
|
_buttonView.userEnabled = newProps.enabled;
|
|
#if !TARGET_OS_TV
|
|
_buttonView.exclusiveTouch = newProps.exclusive;
|
|
#endif
|
|
_buttonView.hitTestEdgeInsets = UIEdgeInsetsMake(
|
|
-newProps.hitSlop.top, -newProps.hitSlop.left, -newProps.hitSlop.bottom, -newProps.hitSlop.right);
|
|
|
|
[super updateProps:props oldProps:oldProps];
|
|
}
|
|
@end
|
|
|
|
Class<RCTComponentViewProtocol> RNGestureHandlerButtonCls(void)
|
|
{
|
|
return RNGestureHandlerButtonComponentView.class;
|
|
}
|
|
|
|
#endif // RCT_NEW_ARCH_ENABLED
|