This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-native-web/dist/exports/findNodeHandle/index.js b/node_modules/react-native-web/dist/exports/findNodeHandle/index.js | |
index c2aa986..a511bac 100644 | |
--- a/node_modules/react-native-web/dist/exports/findNodeHandle/index.js | |
+++ b/node_modules/react-native-web/dist/exports/findNodeHandle/index.js | |
@@ -9,6 +9,6 @@ | |
*/ | |
var findNodeHandle = component => { | |
- throw new Error('findNodeHandle is not supported on web. ' + 'Use the ref property on the component instead.'); | |
+ return component && component._componentViewTag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command line invocation: | |
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -xctestrun /var/folders/gv/3h_xyf194dbcrpw414nkyn4h0000gn/T/335CA049-9561-4A26-8E6E-9FFE26E6F3D9/maestro-driver-ios-config.xctestrun -destination id=335CA049-9561-4A26-8E6E-9FFE26E6F3D9 -derivedDataPath /var/folders/gv/3h_xyf194dbcrpw414nkyn4h0000gn/T/maestro_xctestrunner_xcodebuild_output13214139191714501088 | |
User defaults from command line: | |
IDEDerivedDataPathOverride = /var/folders/gv/3h_xyf194dbcrpw414nkyn4h0000gn/T/maestro_xctestrunner_xcodebuild_output13214139191714501088 | |
IDEPackageSupportUseBuiltinSCM = YES | |
2023-08-16 10:16:55.029887-0400 maestro-driver-iosUITests-Runner[67229:23938143] Running tests... | |
Test Suite 'All tests' started at 2023-08-16 10:16:55.397 | |
Test Suite 'maestro-driver-iosUITests.xctest' started at 2023-08-16 10:16:55.398 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import shuffle from "lodash.shuffle" | |
... | |
... | |
export const QuestionModel = types | |
... | |
.views((self) => ({ | |
get allAnswers() { | |
return shuffle(self.incorrectAnswers.concat([self.correctAnswer])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Instance, SnapshotOut, types } from "mobx-state-tree" | |
import { QuestionStoreModel } from "./QuestionStore" | |
/** | |
* A RootStore model. | |
*/ | |
export const RootStoreModel = types.model("RootStore").props({ | |
questionStore: types.optional(QuestionStoreModel, {} as any), | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const QuestionScreen: FC<StackScreenProps<AppStackScreenProps, "Question">> = observer( | |
function QuestionScreen() { | |
... | |
const onPressAnswer = (question: Question, guess: string) => { | |
question.setGuess(guess) | |
} | |
const checkAnswer = (question: Question) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import shuffle from "lodash.shuffle" | |
... | |
export const QuestionModel = types | |
.model("Question") | |
.props({ | |
id: types.identifier, | |
category: types.maybe(types.string), | |
type: types.enumeration(["multiple", "boolean"]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC, useEffect } from "react" | |
import { observer } from "mobx-react-lite" | |
import { FlatList, TextStyle, View, ViewStyle } from "react-native" | |
import { StackScreenProps } from "@react-navigation/stack" | |
import { AppStackScreenProps } from "../navigators" | |
import { Screen, Text } from "../components" | |
import { spacing, colors } from "../theme" | |
import { Question, useStores } from "../models" | |
import { decodeHTMLEntities } from "../utils/decode-html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useStores } from "../models" | |
... | |
export const QuestionScreen: FC<StackScreenProps<AppStackScreenProps, "Question">> = observer( | |
function QuestionScreen() { | |
// Pull in one of our MST stores | |
const { questionStore } = useStores() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from "react" | |
import { observer } from "mobx-react-lite" | |
import { TextStyle, View, ViewStyle } from "react-native" | |
import { StackScreenProps } from "@react-navigation/stack" | |
import { AppStackScreenProps } from "../navigators" | |
import { Screen, Text } from "../components" | |
import { colors, spacing } from "../theme" | |
// import { useNavigation } from "@react-navigation/native" | |
// import { useStores } from "../models" |
NewerOlder