| /expo/packages/expo-updates/src/statemachine/__tests__/ |
| H A D | UpdatesStateMachine-test.node.ts | 9 .onTransition((state) => { 10 if (state.value === 'checking') { 24 .onTransition((state) => { 25 if (state.value === 'checking') { 51 .onTransition((state) => { 52 if (state.value === 'downloading') { 69 .onTransition((state) => { 98 .onTransition((state) => { 99 if (state.value === 'checking') { 129 .onTransition((state) => { [all …]
|
| /expo/packages/expo-router/src/fork/__tests__/ |
| H A D | getStateFromPath-upstream.test.node.ts | 48 const state = { constant 57 state: { 108 state: { 142 state: { 190 const state = { constant 199 state: { 273 const state = { constant 280 state: { 359 state: { 448 state: { [all …]
|
| H A D | getPathFromState-upstream.test.node.ts | 74 state: { 140 state: { 224 const state = { constant 228 state: { 258 const state = { constant 262 state: { 282 state: { 499 state: { 570 state: { 648 state: { [all …]
|
| /expo/packages/html-elements/ |
| H A D | babel.js | 60 function replaceElement(path, state) { argument 62 if (/\/node_modules\//.test(state.filename)) { 90 JSXElement(path, state) { argument 91 replaceElement(path, state); 92 path.traverse(jsxElementVisitor, state); 97 JSXElement(path, state) { argument 98 replaceElement(path, state); 103 ImportDeclaration(path, state) { argument 126 Program(path, state) { 127 state.replacedComponents = new Set(); [all …]
|
| /expo/packages/expo-router/src/global-state/ |
| H A D | routing.ts | 89 if (!state || state.routes.length === 0) { 108 state?: { routes: ResultState['routes'] }, 111 if (!state) return params; 113 const lastRoute = state.routes.at(-1)!; 118 if (lastRoute.state) { 119 rewriteNavigationStateToParams(lastRoute.state, params.params); 138 state: ResultState, 143 const route = state.routes.at(-1)!; 154 if (route.state && routesAreEqual && currentRoute.state) { 156 route.state, [all …]
|
| /expo/apps/native-component-list/src/screens/ |
| H A D | TextToSpeechScreen.tsx | 62 readonly state: State = { 94 disabled={!this.state.inProgress || this.state.paused} 159 voice: this.state.voice, 161 pitch: this.state.pitch, 162 rate: this.state.rate, 194 ...state, 201 ...state, 202 rate: state.rate + 0.1, 208 ...state, 215 ...state, [all …]
|
| H A D | BarCodeScannerScreen.tsx | 34 ...state, 66 dispatch({ alerting: !state.alerting }); 92 if (state.alerting) { 139 type={state.type} 143 {state.haveDimensions && ( 144 <Svg.Svg height={state.canvasHeight} width={state.canvasWidth} style={styles.svg}> 146 cx={state.canvasWidth! / 2} 147 cy={state.canvasHeight! / 2} 153 {state.showBoundingBox && state.cornerPointsString && ( 161 {state.showText && state.boundingBox && ( [all …]
|
| /expo/apps/native-component-list/src/screens/Camera/ |
| H A D | CameraScreen.tsx | 84 readonly state: State = { 130 this.setState((state) => ({ showGallery: !state.showGallery, newPhotos: false })); 135 this.setState((state) => ({ 139 toggleFlash = () => this.setState((state) => ({ flash: flashModeOrder[state.flash] })); 146 this.setState((state) => ({ 150 zoomOut = () => this.setState((state) => ({ zoom: state.zoom - 0.1 < 0 ? 0 : state.zoom - 0.1 })); 152 zoomIn = () => this.setState((state) => ({ zoom: state.zoom + 0.1 > 1 ? 1 : state.zoom + 0.1 })); 157 this.setState((state) => ({ barcodeScanning: !state.barcodeScanning })); 169 this.setState((state) => ({ recording: !state.recording })); 190 this.setState((state) => ({ mode: state.mode === 'picture' ? 'video' : 'picture' })); [all …]
|
| /expo/apps/bare-expo/relapse/ |
| H A D | server.js | 10 let state; variable 13 if (state) { 20 state = { variable 41 state.ws = ws; 46 if (state.ws) state.ws.close(); 57 if (!state || !state.ws) { 60 state.ws.send(JSON.stringify(message));
|
| /expo/packages/expo-router/build/global-state/ |
| H A D | routing.js | 95 if (!state || state.routes.length === 0) { 107 function rewriteNavigationStateToParams(state, params = {}) { argument 108 if (!state) 111 const lastRoute = state.routes.at(-1); 115 if (lastRoute.state) { 120 function getNavigatePushAction(state, rootState) { argument 121 const { screen, params } = rewriteNavigationStateToParams(state); 133 const route = state.routes.at(-1); 141 if (route.state && routesAreEqual && currentRoute.state) { 142 … return getNavigateReplaceAction(route.state, currentRoute.state, lastNavigatorSupportingReplace); [all …]
|
| /expo/packages/expo-maps/build/ |
| H A D | Map.js | 49 state = { field in ExpoMap 99 if (Object.is(this.state, prevState)) { 159 if (parseInt(Platform.Version, 10) < 13 && this.state.geojsons.length > 0) { 165 …state.markers, polygons: this.state.polygons, polylines: this.state.polylines, circles: this.state… 183 …state.markers, polygons: this.state.polygons, polylines: this.state.polylines, circles: this.state…
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/react/renderer/core/tests/benchmarks/ |
| H A D | ABI47_0_0RawPropsBenchmark.cpp | 38 static void emptyPropCreation(benchmark::State &state) { in emptyPropCreation() argument 39 for (auto _ : state) { in emptyPropCreation() 45 static void propParsingEmptyRawProps(benchmark::State &state) { in propParsingEmptyRawProps() argument 48 for (auto _ : state) { in propParsingEmptyRawProps() 55 static void propParsingRegularRawProps(benchmark::State &state) { in propParsingRegularRawProps() argument 58 for (auto _ : state) { in propParsingRegularRawProps() 65 static void propParsingUnsupportedRawProps(benchmark::State &state) { in propParsingUnsupportedRawProps() argument 68 for (auto _ : state) { in propParsingUnsupportedRawProps() 76 benchmark::State &state) { in propParsingRegularRawPropsWithNoSourceProps() argument 79 for (auto _ : state) { in propParsingRegularRawPropsWithNoSourceProps()
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/renderer/core/tests/benchmarks/ |
| H A D | ABI49_0_0RawPropsBenchmark.cpp | 37 static void emptyPropCreation(benchmark::State &state) { in emptyPropCreation() argument 38 for (auto _ : state) { in emptyPropCreation() 44 static void propParsingEmptyRawProps(benchmark::State &state) { in propParsingEmptyRawProps() argument 47 for (auto _ : state) { in propParsingEmptyRawProps() 54 static void propParsingRegularRawProps(benchmark::State &state) { in propParsingRegularRawProps() argument 57 for (auto _ : state) { in propParsingRegularRawProps() 64 static void propParsingUnsupportedRawProps(benchmark::State &state) { in propParsingUnsupportedRawProps() argument 67 for (auto _ : state) { in propParsingUnsupportedRawProps() 75 benchmark::State &state) { in propParsingRegularRawPropsWithNoSourceProps() argument 78 for (auto _ : state) { in propParsingRegularRawPropsWithNoSourceProps()
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/react/renderer/core/tests/benchmarks/ |
| H A D | ABI48_0_0RawPropsBenchmark.cpp | 37 static void emptyPropCreation(benchmark::State &state) { in emptyPropCreation() argument 38 for (auto _ : state) { in emptyPropCreation() 44 static void propParsingEmptyRawProps(benchmark::State &state) { in propParsingEmptyRawProps() argument 47 for (auto _ : state) { in propParsingEmptyRawProps() 54 static void propParsingRegularRawProps(benchmark::State &state) { in propParsingRegularRawProps() argument 57 for (auto _ : state) { in propParsingRegularRawProps() 64 static void propParsingUnsupportedRawProps(benchmark::State &state) { in propParsingUnsupportedRawProps() argument 67 for (auto _ : state) { in propParsingUnsupportedRawProps() 75 benchmark::State &state) { in propParsingRegularRawPropsWithNoSourceProps() argument 78 for (auto _ : state) { in propParsingRegularRawPropsWithNoSourceProps()
|
| /expo/apps/native-component-list/src/screens/AV/ |
| H A D | AudioModeSelector.ios.tsx | 14 readonly state: State = { 31 await Audio.setAudioModeAsync({ ...this.state.modeToSet }); 32 const { modeToSet } = this.state; 46 this.setState((state) => ({ modeToSet: { ...state.modeToSet, interruptionModeIOS } })); 73 this.setState((state) => ({ 74 modeToSet: { ...state.modeToSet, [valueName]: !state.modeToSet[valueName] }, 107 disabled: !this.state.modeToSet.playsInSilentModeIOS, 108 value: !this.state.modeToSet.playsInSilentModeIOS ? false : undefined, 113 disabled: !this.state.modeToSet.playsInSilentModeIOS, 125 disabled: this.state.modeToSet.playsInSilentModeIOS === false, [all …]
|
| /expo/apps/test-suite/screens/ |
| H A D | TestScreen.js | 15 state: Immutable.fromJS({ property 25 state = initialState; field in TestScreen 199 app.setState(({ state }) => ({ field 200 state: state property 217 app.setState(({ state }) => ({ field 218 state: state property 232 state: state.updateIn(state.get('path').pop().pop(), (children) => property 242 if (app.state.testPortal) { 249 state: state.updateIn(state.get('path').pop().pop(), (children) => property 268 state, [all …]
|
| /expo/packages/expo-updates/ios/Tests/ |
| H A D | UpdatesStateMachineSpec.swift | 26 expect(machine.state) == .idle in spec() 34 expect(machine.state) == .checking in spec() 40 expect(machine.state) == .idle in spec() 56 expect(machine.state) == .checking in spec() 59 expect(machine.state) == .idle in spec() 77 expect(machine.state) == .idle in spec() 92 expect(machine.state) == .checking in spec() 95 expect(machine.state) == .idle in spec() 109 expect(machine.state) == .checking in spec() 119 expect(machine.state) == .checking in spec() [all …]
|
| /expo/tools/src/promote-packages/ |
| H A D | helpers.ts | 20 state: {}, 40 const toPromote = parcels.filter(({ state }) => !state.isDemoting); 41 const toDemote = parcels.filter(({ state }) => state.isDemoting); 57 for (const { pkg, state } of parcels) { constant 61 formatVersionChange(state.versionToReplace, pkg.packageVersion)
|
| /expo/packages/expo-modules-test-core/android/src/main/java/org/unimodules/test/core/ |
| H A D | PromiseMock.kt | 14 var state = PromiseState.NONE variable 46 state = PromiseState.RESOLVED in resolve() 52 state = PromiseState.REJECTED in reject() 60 state = PromiseState.REJECTED in reject() 66 state = PromiseState.REJECTED in reject() 73 state = PromiseState.REJECTED in reject() 79 when (state) { in assertNotResolvedNorRejected() 81 state = PromiseState.ILLEGAL in assertNotResolvedNorRejected()
|
| /expo/home/redux/ |
| H A D | HistoryReducer.ts | 40 export default (state: HistoryType, action: HistoryActions): HistoryType => { 47 return state.merge({ 53 return state.merge({ 54 history: state.get('history').clear(), 57 return state ? state : new HistoryState();
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/SurfaceBackedComponent/ |
| H A D | ABI47_0_0RCTSurfaceBackedComponent.mm | 35 ABI47_0_0RCTSurfaceBackedComponentState *state = scope.state(); 41 if (state.surface == nil || ![state.surface.moduleName isEqualToString:moduleName]) { 54 state = [ABI47_0_0RCTSurfaceBackedComponentState newWithSurface:surface]; 56 CKComponentScope::replaceState(scope, state); 59 if (![state.surface.properties isEqualToDictionary:adjustedProperties]) { 60 state.surface.properties = adjustedProperties; 65 [ABI47_0_0RCTSurfaceHostingComponent newWithSurface:state.surface 69 …if (options.activityIndicatorComponentFactory == nil || ABI47_0_0RCTSurfaceStageIsRunning(state.su…
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/SurfaceBackedComponent/ |
| H A D | ABI49_0_0RCTSurfaceBackedComponent.mm | 35 ABI49_0_0RCTSurfaceBackedComponentState *state = scope.state(); 41 if (state.surface == nil || ![state.surface.moduleName isEqualToString:moduleName]) { 52 state = [ABI49_0_0RCTSurfaceBackedComponentState newWithSurface:surface]; 54 CKComponentScope::replaceState(scope, state); 56 if (![state.surface.properties isEqualToDictionary:adjustedProperties]) { 57 state.surface.properties = adjustedProperties; 61 …ponent *surfaceHostingComponent = [ABI49_0_0RCTSurfaceHostingComponent newWithSurface:state.surface 65 …if (options.activityIndicatorComponentFactory == nil || ABI49_0_0RCTSurfaceStageIsRunning(state.su…
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/SurfaceBackedComponent/ |
| H A D | ABI48_0_0RCTSurfaceBackedComponent.mm | 35 ABI48_0_0RCTSurfaceBackedComponentState *state = scope.state(); 41 if (state.surface == nil || ![state.surface.moduleName isEqualToString:moduleName]) { 52 state = [ABI48_0_0RCTSurfaceBackedComponentState newWithSurface:surface]; 54 CKComponentScope::replaceState(scope, state); 56 if (![state.surface.properties isEqualToDictionary:adjustedProperties]) { 57 state.surface.properties = adjustedProperties; 61 …ponent *surfaceHostingComponent = [ABI48_0_0RCTSurfaceHostingComponent newWithSurface:state.surface 65 …if (options.activityIndicatorComponentFactory == nil || ABI48_0_0RCTSurfaceStageIsRunning(state.su…
|
| /expo/apps/native-component-list/src/screens/GestureHandler/ |
| H A D | FancyButton.tsx | 28 readonly state: FBState = {}; 52 const { longPress, singleTap } = this.state; 63 const { state } = event.nativeEvent; 64 this.setState({ longPress: state }); 66 if (state === State.ACTIVE) { 72 const { state } = event.nativeEvent; 73 this.setState({ singleTap: state }); 75 if (state === State.ACTIVE) { 81 const { state } = event.nativeEvent; 83 if (state === State.ACTIVE) {
|
| /expo/packages/expo-router/src/fork/ |
| H A D | getPathFromState.ts | 26 state?: State; 34 ? state.routes[state.index] 35 : state.routes[state.routes.length - 1]; 37 if (route.state) { 109 state: State, 119 state: State, 125 if (state == null) { 287 const index = route.state.index ?? route.state.routes.length - 1; 332 state: State, 375 nextRoute.state && [all …]
|