Skip to content

Instantly share code, notes, and snippets.

View farhan-ibrahim's full-sized avatar
🎯
Learning Flutter and Dart

Farhan Ibrahim farhan-ibrahim

🎯
Learning Flutter and Dart
View GitHub Profile
@farhan-ibrahim
farhan-ibrahim / App.js
Created August 18, 2022 03:19 — forked from cruzach/App.js
import Constants from "expo-constants";
import * as Notifications from "expo-notifications";
import * as Permissions from "expo-permissions";
import React, { useState, useEffect, useRef } from "react";
import { Text, View, Button, Platform } from "react-native";
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: false,
1. yarn add --dev detox jest-circus
2. detox init -r jest (This creates the e2e folder along with the .detoxrc.json)
3. yarn add --dev eslint-plugin-detox (optional)
plugins: [...'detox'...],
- Add this to your eslint config plugins
4.Make sure your your **eas.json** has a simulator build set up that looks like this then create a simulator release build by running: **eas build --profile simulator --platform ios**
"simulator": {
"ios": {
"simulator": true,