- 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
75 lines
2.7 KiB
Objective-C
75 lines
2.7 KiB
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <React/RCTMountingManagerDelegate.h>
|
|
#import <React/RCTPrimitives.h>
|
|
#import <react/renderer/core/ComponentDescriptor.h>
|
|
#import <react/renderer/core/RawProps.h>
|
|
#import <react/renderer/core/ReactPrimitives.h>
|
|
#import <react/renderer/mounting/MountingCoordinator.h>
|
|
#import <react/renderer/mounting/ShadowView.h>
|
|
#import <react/utils/ContextContainer.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class RCTComponentViewRegistry;
|
|
|
|
/**
|
|
* Manages mounting process.
|
|
*/
|
|
@interface RCTMountingManager : NSObject
|
|
|
|
@property (nonatomic, weak) id<RCTMountingManagerDelegate> delegate;
|
|
@property (nonatomic, strong) RCTComponentViewRegistry *componentViewRegistry;
|
|
|
|
- (void)setContextContainer:(facebook::react::ContextContainer::Shared)contextContainer;
|
|
|
|
/**
|
|
* Designates the view as a rendering viewport of a React Native surface.
|
|
* The provided view must not have any subviews, and the caller is not supposed to interact with the view hierarchy
|
|
* inside the provided view. The view hierarchy created by mounting infrastructure inside the provided view does not
|
|
* influence the intrinsic size of the view and cannot be measured using UIView/UIKit layout API.
|
|
* Must be called on the main thead.
|
|
*/
|
|
- (void)attachSurfaceToView:(UIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId;
|
|
|
|
/**
|
|
* Stops designating the view as a rendering viewport of a React Native surface.
|
|
*/
|
|
- (void)detachSurfaceFromView:(UIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId;
|
|
|
|
/**
|
|
* Schedule a mounting transaction to be performed on the main thread.
|
|
* Can be called from any thread.
|
|
*/
|
|
- (void)scheduleTransaction:(facebook::react::MountingCoordinator::Shared)mountingCoordinator;
|
|
|
|
/**
|
|
* Dispatch a command to be performed on the main thread.
|
|
* Can be called from any thread.
|
|
*/
|
|
- (void)dispatchCommand:(ReactTag)reactTag commandName:(NSString *)commandName args:(NSArray *)args;
|
|
|
|
/**
|
|
* Dispatch an accessibility event to be performed on the main thread.
|
|
* Can be called from any thread.
|
|
*/
|
|
- (void)sendAccessibilityEvent:(ReactTag)reactTag eventType:(NSString *)eventType;
|
|
|
|
- (void)setIsJSResponder:(BOOL)isJSResponder
|
|
blockNativeResponder:(BOOL)blockNativeResponder
|
|
forShadowView:(const facebook::react::ShadowView &)shadowView;
|
|
|
|
- (void)synchronouslyUpdateViewOnUIThread:(ReactTag)reactTag
|
|
changedProps:(NSDictionary *)props
|
|
componentDescriptor:(const facebook::react::ComponentDescriptor &)componentDescriptor;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|