| /expo/packages/expo-image-manipulator/build/ |
| H A D | validators.js | 16 for (const action of actions) { 17 if (typeof action !== 'object' || action === null) { 30 validateCropAction(action); 33 validateFlipAction(action); 43 function validateCropAction(action) { argument 45 action.crop !== null && 54 function validateFlipAction(action) { argument 60 function validateRotateAction(action) { argument 67 action.resize !== null && 68 (typeof action.resize.width === 'number' || typeof action.resize.width === 'undefined') && [all …]
|
| H A D | ExpoImageManipulator.web.js | 46 const resultCanvas = actions.reduce((canvas, action) => { 47 if ('crop' in action) { 48 return crop(canvas, action.crop); 50 else if ('resize' in action) { 51 return resize(canvas, action.resize); 53 else if ('flip' in action) { 54 return flip(canvas, action.flip); 56 else if ('rotate' in action) { 57 return rotate(canvas, action.rotate);
|
| /expo/packages/expo-image-manipulator/src/ |
| H A D | validators.ts | 28 for (const action of actions) { constant 29 if (typeof action !== 'object' || action === null) { 33 const actionKeys = Object.keys(action); 58 typeof action.crop === 'object' && 59 action.crop !== null && 73 typeof action.flip !== 'string' || 81 if (typeof action.rotate !== 'number') { 88 typeof action.resize === 'object' && 89 action.resize !== null && 90 (typeof action.resize.width === 'number' || typeof action.resize.width === 'undefined') && [all …]
|
| H A D | ExpoImageManipulator.web.ts | 56 const resultCanvas = actions.reduce((canvas, action) => { 57 if ('crop' in action) { 58 return crop(canvas, action.crop); 59 } else if ('resize' in action) { 60 return resize(canvas, action.resize); 61 } else if ('flip' in action) { 62 return flip(canvas, action.flip); 63 } else if ('rotate' in action) { 64 return rotate(canvas, action.rotate);
|
| /expo/packages/@expo/config-plugins/src/plugins/ |
| H A D | android-plugins.ts | 56 action 61 action, 75 action, 89 action, 101 action 106 action, 120 action, 132 action 149 action 166 action [all …]
|
| H A D | ios-plugins.ts | 37 action: MutateInfoPlistAction, 79 action: MutateEntitlementsPlistAction, 105 action, 120 async action(config) { 121 config = await action(config); 142 async action(config) { 143 config = await action(config); 163 action, 177 action, 189 action [all …]
|
| /expo/packages/@expo/config-plugins/build/plugins/ |
| H A D | android-plugins.js | 56 action field 71 action field 86 action field 101 action field 116 action field 131 action field 146 action field 161 action field 176 action field 191 action field [all …]
|
| H A D | ios-plugins.js | 36 function createInfoPlistPlugin(action, name) { argument 96 action field 108 const withInfoPlist = (config, action) => { argument 112 async action(config) { method 113 config = await action(config); 135 async action(config) { method 136 config = await action(config); 153 const withExpoPlist = (config, action) => { argument 157 action field 172 action field [all …]
|
| /expo/packages/expo-dev-menu-interface/ios/Tests/ |
| H A D | DevMenuActionTest.swift | 9 let action = DevMenuAction(withId: "action-1", {}) in spec() variable 10 action.isAvailable = { true } in spec() 11 action.isEnabled = { true } in spec() 12 action.label = { "action-1-label" } in spec() 13 action.detail = { "action-1-details" } in spec() 14 action.glyphName = { "action-1-glyphname" } in spec() 15 action.registerKeyCommand(input: "r", modifiers: .command) in spec() 17 let serilizedData = action.serialize() in spec() 19 expect(serilizedData["type"] as? Int).to(equal(ItemType.action.rawValue)) in spec() 35 let action = DevMenuAction(withId: "action-1", { wasCalled = true }) in spec() variable [all …]
|
| /expo/packages/expo-dev-menu/ios/Modules/ |
| H A D | DevMenuExtensions.swift | 76 private static func reloadAction(_ action: @escaping () -> Void) -> DevMenuAction { 77 let reload = DevMenuAction(withId: "reload", action: action) 85 private static func elementInspectorAction(_ action: @escaping () -> Void) -> DevMenuAction { 86 let inspector = DevMenuAction(withId: "inspector", action: action) 94 private static func jsInspectorAction(_ action: @escaping () -> Void) -> DevMenuAction { 95 let jsInspectror = DevMenuAction(withId: "js-inspector", action: action) 102 private static func remoteDebugAction(_ action: @escaping () -> Void) -> DevMenuAction { 103 let remoteDebug = DevMenuAction(withId: "remote-debug", action: action) 110 private static func fastRefreshAction(_ action: @escaping () -> Void) -> DevMenuAction { 111 let fastRefresh = DevMenuAction(withId: "fast-refresh", action: action) [all …]
|
| /expo/packages/expo-web-browser/android/src/main/java/expo/modules/webbrowser/ |
| H A D | DeferredClientActionsQueue.kt | 17 fun executeOrQueueAction(action: Consumer<T>) { in hasClient() 19 action.apply(client) in hasClient() 21 addActionToQueue(action) in hasClient() 35 var action = actions.poll() in executeQueuedActions() variable 36 while (action != null) { in executeQueuedActions() 37 action.apply(client) in executeQueuedActions() 38 action = actions.poll() in executeQueuedActions()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/webbrowser/ |
| H A D | DeferredClientActionsQueue.kt | 17 fun executeOrQueueAction(action: Consumer<T>) { in hasClient() 19 action.apply(client) in hasClient() 21 addActionToQueue(action) in hasClient() 35 var action = actions.poll() in executeQueuedActions() variable 36 while (action != null) { in executeQueuedActions() 37 action.apply(client) in executeQueuedActions() 38 action = actions.poll() in executeQueuedActions()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/webbrowser/ |
| H A D | DeferredClientActionsQueue.kt | 17 fun executeOrQueueAction(action: Consumer<T>) { in hasClient() 19 action.apply(client) in hasClient() 21 addActionToQueue(action) in hasClient() 35 var action = actions.poll() in executeQueuedActions() variable 36 while (action != null) { in executeQueuedActions() 37 action.apply(client) in executeQueuedActions() 38 action = actions.poll() in executeQueuedActions()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/webbrowser/ |
| H A D | DeferredClientActionsQueue.kt | 17 fun executeOrQueueAction(action: Consumer<T>) { in hasClient() 19 action.apply(client) in hasClient() 21 addActionToQueue(action) in hasClient() 35 var action = actions.poll() in executeQueuedActions() variable 36 while (action != null) { in executeQueuedActions() 37 action.apply(client) in executeQueuedActions() 38 action = actions.poll() in executeQueuedActions()
|
| /expo/packages/expo-image-manipulator/src/__tests__/ |
| H A D | validators-test.ts | 30 const action = { constant 34 validateActions([action]); 41 const action = { constant 48 validateActions([action]); 71 const action = { constant 74 validateActions([action]); 92 const action = { constant 95 validateActions([action]); 113 const action = { constant 119 validateActions([action]);
|
| /expo/packages/expo-dev-menu-interface/ios/MenuItems/ |
| H A D | DevMenuAction.swift | 12 public var action: () -> Void { variable 13 get { return self.callable.action } 14 set { self.callable.action = newValue } 46 public convenience init(withId id: String, action: @escaping () -> Void) { 48 self.callable.action = action 52 public convenience init(withId id: String, _ action: @escaping () -> Void) { 53 self.init(withId: id, action: action)
|
| H A D | DevMenuExportedCallable.swift | 42 public var action: () -> Void variable 51 public init(withId id: String, withAction action: @escaping () -> Void) { 52 self.action = action 57 action() in call() 62 …keyCommand = UIKeyCommand(input: input, modifierFlags: modifiers, action: #selector(DevMenuUIRespo… in registerKeyCommand()
|
| /expo/apps/native-component-list/src/screens/Location/ |
| H A D | LocationScreen.tsx | 38 return <SimpleActionDemo title={props.title} action={toggle} />; 65 action={() => Location.requestPermissionsAsync()} 69 action={() => Location.getPermissionsAsync()} 73 action={() => Location.requestForegroundPermissionsAsync()} 77 action={() => Location.getForegroundPermissionsAsync()} 85 action={() => Location.getBackgroundPermissionsAsync()} 89 action={() => Location.hasServicesEnabledAsync()} 93 action={() => Location.getProviderStatusAsync()} 97 action={() => 103 action={() => Location.getCurrentPositionAsync()} [all …]
|
| /expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/presentation/builders/ |
| H A D | CategoryAwareNotificationBuilder.java | 58 for (NotificationAction action : actions) { in addActionsToBuilder() 59 if (action instanceof TextInputNotificationAction) { in addActionsToBuilder() 60 builder.addAction(buildTextInputAction((TextInputNotificationAction) action)); in addActionsToBuilder() 62 builder.addAction(buildButtonAction(action)); in addActionsToBuilder() 67 protected NotificationCompat.Action buildButtonAction(@NonNull NotificationAction action) { in buildButtonAction() argument 68 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildButtonAction() 69 … return new NotificationCompat.Action.Builder(super.getIcon(), action.getTitle(), intent).build(); in buildButtonAction() 72 …ected NotificationCompat.Action buildTextInputAction(@NonNull TextInputNotificationAction action) { in buildTextInputAction() argument 73 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildTextInputAction() 75 .setLabel(action.getPlaceholder()) in buildTextInputAction() [all …]
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/notifications/notifications/presentation/builders/ |
| H A D | CategoryAwareNotificationBuilder.java | 58 for (NotificationAction action : actions) { in addActionsToBuilder() 59 if (action instanceof TextInputNotificationAction) { in addActionsToBuilder() 60 builder.addAction(buildTextInputAction((TextInputNotificationAction) action)); in addActionsToBuilder() 62 builder.addAction(buildButtonAction(action)); in addActionsToBuilder() 67 protected NotificationCompat.Action buildButtonAction(@NonNull NotificationAction action) { in buildButtonAction() argument 68 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildButtonAction() 69 … return new NotificationCompat.Action.Builder(super.getIcon(), action.getTitle(), intent).build(); in buildButtonAction() 72 …ected NotificationCompat.Action buildTextInputAction(@NonNull TextInputNotificationAction action) { in buildTextInputAction() argument 73 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildTextInputAction() 75 .setLabel(action.getPlaceholder()) in buildTextInputAction() [all …]
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/notifications/notifications/presentation/builders/ |
| H A D | CategoryAwareNotificationBuilder.java | 58 for (NotificationAction action : actions) { in addActionsToBuilder() 59 if (action instanceof TextInputNotificationAction) { in addActionsToBuilder() 60 builder.addAction(buildTextInputAction((TextInputNotificationAction) action)); in addActionsToBuilder() 62 builder.addAction(buildButtonAction(action)); in addActionsToBuilder() 67 protected NotificationCompat.Action buildButtonAction(@NonNull NotificationAction action) { in buildButtonAction() argument 68 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildButtonAction() 69 … return new NotificationCompat.Action.Builder(super.getIcon(), action.getTitle(), intent).build(); in buildButtonAction() 72 …ected NotificationCompat.Action buildTextInputAction(@NonNull TextInputNotificationAction action) { in buildTextInputAction() argument 73 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildTextInputAction() 75 .setLabel(action.getPlaceholder()) in buildTextInputAction() [all …]
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/notifications/notifications/presentation/builders/ |
| H A D | CategoryAwareNotificationBuilder.java | 58 for (NotificationAction action : actions) { in addActionsToBuilder() 59 if (action instanceof TextInputNotificationAction) { in addActionsToBuilder() 60 builder.addAction(buildTextInputAction((TextInputNotificationAction) action)); in addActionsToBuilder() 62 builder.addAction(buildButtonAction(action)); in addActionsToBuilder() 67 protected NotificationCompat.Action buildButtonAction(@NonNull NotificationAction action) { in buildButtonAction() argument 68 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildButtonAction() 69 … return new NotificationCompat.Action.Builder(super.getIcon(), action.getTitle(), intent).build(); in buildButtonAction() 72 …ected NotificationCompat.Action buildTextInputAction(@NonNull TextInputNotificationAction action) { in buildTextInputAction() argument 73 …cationsService.Companion.createNotificationResponseIntent(getContext(), getNotification(), action); in buildTextInputAction() 75 .setLabel(action.getPlaceholder()) in buildTextInputAction() [all …]
|
| /expo/home/redux/ |
| H A D | SettingsReducer.ts | 29 export default (state: SettingsType, action: SettingsActions): SettingsType => { 30 switch (action.type) { 32 return new SettingsState(action.payload); 34 const { preferredAppearance } = action.payload; 41 ...action.payload,
|
| /expo/packages/@expo/config-plugins/src/plugins/__tests__/ |
| H A D | withMod-test.ts | 10 const action: Mod<any> = jest.fn((props) => { constant 20 action, 39 expect(action).toBeCalledWith(config); 49 action(props) { 62 action(props) { 80 action(props) { 92 action(props) {
|
| /expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/categories/serializers/ |
| H A D | ExpoNotificationsCategoriesSerializer.java | 43 for (NotificationAction action : actions) { in toBundleList() 44 result.add(toBundle(action)); in toBundleList() 49 private Bundle toBundle(NotificationAction action) { in toBundle() argument 52 serializedActionOptions.putBoolean("opensAppToForeground", action.opensAppToForeground()); in toBundle() 55 serializedAction.putString("identifier", action.getIdentifier()); in toBundle() 56 serializedAction.putString("buttonTitle", action.getTitle()); in toBundle() 59 if (action instanceof TextInputNotificationAction) { in toBundle() 61 …serializedTextInputOptions.putString("placeholder", ((TextInputNotificationAction) action).getPlac… in toBundle()
|