Skip to content

Instantly share code, notes, and snippets.

@petrbela
petrbela / Fastfile
Last active December 1, 2022 01:30
React Native deployment
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
@petrbela
petrbela / poll_production.json
Last active August 20, 2018 23:22
Medium: Apple Subscriptions? WAT?!
{
"status": 0,
"environment": "Production",
"receipt": {
"latest_receipt_info": [],
"latest_receipt": "...",
"pending_renewal_info": [
{
"auto_renew_product_id": "com.sweatflex.flex.monthly",
"original_transaction_id": "...",
// used for Expo Go
import {
Orientation,
addOrientationChangeListener,
getOrientationAsync,
removeOrientationChangeListener,
} from 'expo-screen-orientation'
import { useEffect, useState } from 'react'
import { Dimensions } from 'react-native'
import { withExpo } from '@expo/next-adapter'
import bundleAnalyzer from '@next/bundle-analyzer'
import { withSentryConfig } from '@sentry/nextjs'
/** @type {import('next').NextConfig} */
const nextConfig = {
// reanimated (and thus, Moti) doesn't work with strict mode currently...
// https://github.com/nandorojo/moti/issues/224
// https://github.com/necolas/react-native-web/pull/2330
// once that gets fixed, set this back to true