- 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
47 lines
1.7 KiB
Objective-C
47 lines
1.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>
|
|
|
|
@protocol RCTBackedTextInputViewProtocol;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol RCTBackedTextInputDelegate <NSObject>
|
|
|
|
- (BOOL)textInputShouldBeginEditing; // Return `NO` to disallow editing.
|
|
- (void)textInputDidBeginEditing;
|
|
|
|
- (BOOL)textInputShouldEndEditing; // Return `YES` to allow editing to stop and to resign first responder status. `NO`
|
|
// to disallow the editing session to end.
|
|
- (void)textInputDidEndEditing; // May be called if forced even if `textInputShouldEndEditing` returns `NO` (e.g. view
|
|
// removed from window) or `[textInput endEditing:YES]` called.
|
|
|
|
- (BOOL)textInputShouldReturn; // May be called right before `textInputShouldEndEditing` if "Return" button was pressed.
|
|
// Dismisses keyboard if true
|
|
- (void)textInputDidReturn;
|
|
|
|
- (BOOL)textInputShouldSubmitOnReturn; // Checks whether to submit when return is pressed and emits an event if true.
|
|
|
|
/*
|
|
* Called before any change in the TextInput. The delegate has the opportunity to change the replacement string or
|
|
* reject the change completely. To change the replacement, return the changed version of the `text`. To accept the
|
|
* change, return `text` argument as-is. To reject the change, return `nil`.
|
|
*/
|
|
- (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range;
|
|
- (void)textInputDidChange;
|
|
|
|
- (void)textInputDidChangeSelection;
|
|
|
|
@optional
|
|
|
|
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|