iamolegga / react-native-launch-arguments

Get launch arguments for testing with Detox and Appium
MIT License
55 stars 21 forks source link

Add maestro example #70

Closed retyui closed 1 year ago

retyui commented 1 year ago

Tested (docs: https://maestro.mobile.dev/api-reference/commands/launchapp#launch-arguments)

- launchApp:
    appId: "com.example.app"
    arguments: 
       foo: "This is a string"
       isFooEnabled: "false"
       fooValue: 3.24
       fooInt: 3
LaunchArguments.value() 
// Android : {"foo": "This is a string", "fooInt": 3, "fooValue": 3.24, "isFooEnabled": false}
// iOS     : {"foo": "This is a string", "fooInt": 3, "fooValue": 3.24, "isFooEnabled": false}