0) {
129 | println "android.packagingOptions.$prop += $options ($options.length)"
130 | // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
131 | options.each {
132 | android.packagingOptions[prop] += it
133 | }
134 | }
135 | }
136 |
137 | dependencies {
138 | // The version of react-native is set by the React Native Gradle Plugin
139 | implementation("com.facebook.react:react-android")
140 |
141 | def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
142 | def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
143 | def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
144 | def frescoVersion = rootProject.ext.frescoVersion
145 |
146 | // If your app supports Android versions before Ice Cream Sandwich (API level 14)
147 | if (isGifEnabled || isWebpEnabled) {
148 | implementation("com.facebook.fresco:fresco:${frescoVersion}")
149 | implementation("com.facebook.fresco:imagepipeline-okhttp3:${frescoVersion}")
150 | }
151 |
152 | if (isGifEnabled) {
153 | // For animated gif support
154 | implementation("com.facebook.fresco:animated-gif:${frescoVersion}")
155 | }
156 |
157 | if (isWebpEnabled) {
158 | // For webp support
159 | implementation("com.facebook.fresco:webpsupport:${frescoVersion}")
160 | if (isWebpAnimatedEnabled) {
161 | // Animated webp support
162 | implementation("com.facebook.fresco:animated-webp:${frescoVersion}")
163 | }
164 | }
165 |
166 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
167 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
168 | exclude group:'com.squareup.okhttp3', module:'okhttp'
169 | }
170 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
171 |
172 | if (hermesEnabled.toBoolean()) {
173 | implementation("com.facebook.react:hermes-android")
174 | } else {
175 | implementation jscFlavor
176 | }
177 | }
178 |
179 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
180 | applyNativeModulesAppBuildGradle(project)
181 |
--------------------------------------------------------------------------------
/example/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/debug.keystore
--------------------------------------------------------------------------------
/example/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # react-native-reanimated
11 | -keep class com.swmansion.reanimated.** { *; }
12 | -keep class com.facebook.react.turbomodule.** { *; }
13 |
14 | # Add any project specific keep options here:
15 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/java/expo/modules/sweetsheet/example/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package expo.modules.sweetsheet.example;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
21 | import com.facebook.react.ReactInstanceEventListener;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | /**
28 | * Class responsible of loading Flipper inside your React Native application. This is the debug
29 | * flavor of it. Here you can add your own plugins and customize the Flipper setup.
30 | */
31 | public class ReactNativeFlipper {
32 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
33 | if (FlipperUtils.shouldEnableFlipper(context)) {
34 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
35 |
36 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
37 | client.addPlugin(new DatabasesFlipperPlugin(context));
38 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
39 | client.addPlugin(CrashReporterPlugin.getInstance());
40 |
41 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
42 | NetworkingModule.setCustomClientBuilder(
43 | new NetworkingModule.CustomClientBuilder() {
44 | @Override
45 | public void apply(OkHttpClient.Builder builder) {
46 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
47 | }
48 | });
49 | client.addPlugin(networkFlipperPlugin);
50 | client.start();
51 |
52 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
53 | // Hence we run if after all native modules have been initialized
54 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
55 | if (reactContext == null) {
56 | reactInstanceManager.addReactInstanceEventListener(
57 | new ReactInstanceEventListener() {
58 | @Override
59 | public void onReactContextInitialized(ReactContext reactContext) {
60 | reactInstanceManager.removeReactInstanceEventListener(this);
61 | reactContext.runOnNativeModulesQueueThread(
62 | new Runnable() {
63 | @Override
64 | public void run() {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | });
68 | }
69 | });
70 | } else {
71 | client.addPlugin(new FrescoFlipperPlugin());
72 | }
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/expo/modules/sweetsheet/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package expo.modules.sweetsheet.example;
2 |
3 | import android.os.Build;
4 | import android.os.Bundle;
5 |
6 | import com.facebook.react.ReactActivity;
7 | import com.facebook.react.ReactActivityDelegate;
8 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
9 | import com.facebook.react.defaults.DefaultReactActivityDelegate;
10 |
11 | import expo.modules.ReactActivityDelegateWrapper;
12 |
13 | public class MainActivity extends ReactActivity {
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | // Set the theme to AppTheme BEFORE onCreate to support
17 | // coloring the background, status bar, and navigation bar.
18 | // This is required for expo-splash-screen.
19 | setTheme(R.style.AppTheme);
20 | super.onCreate(null);
21 | }
22 |
23 | /**
24 | * Returns the name of the main component registered from JavaScript.
25 | * This is used to schedule rendering of the component.
26 | */
27 | @Override
28 | protected String getMainComponentName() {
29 | return "main";
30 | }
31 |
32 | /**
33 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
34 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
35 | * (aka React 18) with two boolean flags.
36 | */
37 | @Override
38 | protected ReactActivityDelegate createReactActivityDelegate() {
39 | return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, new DefaultReactActivityDelegate(
40 | this,
41 | getMainComponentName(),
42 | // If you opted-in for the New Architecture, we enable the Fabric Renderer.
43 | DefaultNewArchitectureEntryPoint.getFabricEnabled()));
44 | }
45 |
46 | /**
47 | * Align the back button behavior with Android S
48 | * where moving root activities to background instead of finishing activities.
49 | * @see onBackPressed
50 | */
51 | @Override
52 | public void invokeDefaultOnBackPressed() {
53 | if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
54 | if (!moveTaskToBack(false)) {
55 | // For non-root activities, use the default implementation to finish them.
56 | super.invokeDefaultOnBackPressed();
57 | }
58 | return;
59 | }
60 |
61 | // Use the default back button implementation on Android S
62 | // because it's doing more than {@link Activity#moveTaskToBack} in fact.
63 | super.invokeDefaultOnBackPressed();
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/expo/modules/sweetsheet/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package expo.modules.sweetsheet.example;
2 |
3 | import android.app.Application;
4 | import android.content.res.Configuration;
5 | import androidx.annotation.NonNull;
6 |
7 | import com.facebook.react.PackageList;
8 | import com.facebook.react.ReactApplication;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.config.ReactFeatureFlags;
12 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
13 | import com.facebook.react.defaults.DefaultReactNativeHost;
14 | import com.facebook.soloader.SoLoader;
15 |
16 | import expo.modules.ApplicationLifecycleDispatcher;
17 | import expo.modules.ReactNativeHostWrapper;
18 |
19 | import java.util.List;
20 |
21 | public class MainApplication extends Application implements ReactApplication {
22 |
23 | private final ReactNativeHost mReactNativeHost =
24 | new ReactNativeHostWrapper(this, new DefaultReactNativeHost(this) {
25 | @Override
26 | public boolean getUseDeveloperSupport() {
27 | return BuildConfig.DEBUG;
28 | }
29 |
30 | @Override
31 | protected List getPackages() {
32 | @SuppressWarnings("UnnecessaryLocalVariable")
33 | List packages = new PackageList(this).getPackages();
34 | // Packages that cannot be autolinked yet can be added manually here, for example:
35 | // packages.add(new MyReactNativePackage());
36 | return packages;
37 | }
38 |
39 | @Override
40 | protected String getJSMainModuleName() {
41 | return ".expo/.virtual-metro-entry";
42 | }
43 |
44 | @Override
45 | protected boolean isNewArchEnabled() {
46 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
47 | }
48 |
49 | @Override
50 | protected Boolean isHermesEnabled() {
51 | return BuildConfig.IS_HERMES_ENABLED;
52 | }
53 | });
54 |
55 | @Override
56 | public ReactNativeHost getReactNativeHost() {
57 | return mReactNativeHost;
58 | }
59 |
60 | @Override
61 | public void onCreate() {
62 | super.onCreate();
63 | SoLoader.init(this, /* native exopackage */ false);
64 | if (!BuildConfig.REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS) {
65 | ReactFeatureFlags.unstable_useRuntimeSchedulerAlways = false;
66 | }
67 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
68 | // If you opted-in for the New Architecture, we load the native entry point for this app.
69 | DefaultNewArchitectureEntryPoint.load();
70 | }
71 | ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
72 | ApplicationLifecycleDispatcher.onApplicationCreate(this);
73 | }
74 |
75 | @Override
76 | public void onConfigurationChanged(@NonNull Configuration newConfig) {
77 | super.onConfigurationChanged(newConfig);
78 | ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-hdpi/splashscreen_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/drawable-hdpi/splashscreen_image.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-mdpi/splashscreen_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/drawable-mdpi/splashscreen_image.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/rn_edit_text_material.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
22 |
23 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/splashscreen.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values-night/colors.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 | #ffffff
3 | #ffffff
4 | #023c69
5 | #ffffff
6 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | sweet-sheet-example
3 | contain
4 | false
5 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
14 |
17 |
--------------------------------------------------------------------------------
/example/android/app/src/release/java/expo/modules/sweetsheet/example/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package expo.modules.sweetsheet.example;
8 |
9 | import android.content.Context;
10 | import com.facebook.react.ReactInstanceManager;
11 |
12 | /**
13 | * Class responsible of loading Flipper inside your React Native application. This is the release
14 | * flavor of it so it's empty as we don't want to load Flipper.
15 | */
16 | public class ReactNativeFlipper {
17 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
18 | // Do nothing as we don't want to initialize Flipper on Release.
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = findProperty('android.buildToolsVersion') ?: '33.0.0'
6 | minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
7 | compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '33')
8 | targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '33')
9 | kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'
10 | frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'
11 |
12 | // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
13 | ndkVersion = "23.1.7779620"
14 | }
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | dependencies {
20 | // @generated begin kotlin-gradle-plugin-dependency - expo prebuild (DO NOT MODIFY) sync-df1989f34dc7e9ca009f9d4df42a3ceec65faf1e
21 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
22 | // @generated end kotlin-gradle-plugin-dependency
23 | classpath('com.android.tools.build:gradle:7.4.2')
24 | classpath('com.facebook.react:react-native-gradle-plugin')
25 | }
26 | }
27 |
28 | allprojects {
29 | repositories {
30 | maven {
31 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
32 | url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
33 | }
34 | maven {
35 | // Android JSC is installed from npm
36 | url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
37 | }
38 |
39 | google()
40 | mavenCentral()
41 | maven { url 'https://www.jitpack.io' }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 |
25 | # Automatically convert third-party libraries to use AndroidX
26 | android.enableJetifier=true
27 |
28 | # Version of flipper SDK to use with React Native
29 | FLIPPER_VERSION=0.182.0
30 |
31 | # Use this property to specify which architecture you want to build.
32 | # You can also override it from the CLI using
33 | # ./gradlew -PreactNativeArchitectures=x86_64
34 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
35 |
36 | # Use this property to enable support to the new architecture.
37 | # This will allow you to use TurboModules and the Fabric render in
38 | # your application. You should enable this flag either if you want
39 | # to write custom TurboModules/Fabric components OR use libraries that
40 | # are providing them.
41 | newArchEnabled=false
42 |
43 | # Use this property to enable or disable the Hermes JS engine.
44 | # If set to false, you will be using JSC instead.
45 | hermesEnabled=true
46 |
47 | # Enable GIF support in React Native images (~200 B increase)
48 | expo.gif.enabled=true
49 | # Enable webp support in React Native images (~85 KB increase)
50 | expo.webp.enabled=true
51 | # Enable animated webp support (~3.4 MB increase)
52 | # Disabled by default because iOS doesn't support animated webp
53 | expo.webp.animated=false
54 |
55 | # Enable network inspector
56 | EX_DEV_CLIENT_NETWORK_INSPECTOR=true
57 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
4 | networkTimeout=10000
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | #
21 | # Gradle start up script for POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84 |
85 | APP_NAME="Gradle"
86 | APP_BASE_NAME=${0##*/}
87 |
88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 |
142 | # Increase the maximum file descriptors if we can.
143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 | case $MAX_FD in #(
145 | max*)
146 | MAX_FD=$( ulimit -H -n ) ||
147 | warn "Could not query maximum file descriptor limit"
148 | esac
149 | case $MAX_FD in #(
150 | '' | soft) :;; #(
151 | *)
152 | ulimit -n "$MAX_FD" ||
153 | warn "Could not set maximum file descriptor limit to $MAX_FD"
154 | esac
155 | fi
156 |
157 | # Collect all arguments for the java command, stacking in reverse order:
158 | # * args from the command line
159 | # * the main class name
160 | # * -classpath
161 | # * -D...appname settings
162 | # * --module-path (only if needed)
163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164 |
165 | # For Cygwin or MSYS, switch paths to Windows format before running java
166 | if "$cygwin" || "$msys" ; then
167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169 |
170 | JAVACMD=$( cygpath --unix "$JAVACMD" )
171 |
172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
173 | for arg do
174 | if
175 | case $arg in #(
176 | -*) false ;; # don't mess with options #(
177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178 | [ -e "$t" ] ;; #(
179 | *) false ;;
180 | esac
181 | then
182 | arg=$( cygpath --path --ignore --mixed "$arg" )
183 | fi
184 | # Roll the args list around exactly as many times as the number of
185 | # args, so each arg winds up back in the position where it started, but
186 | # possibly modified.
187 | #
188 | # NB: a `for` loop captures its iteration list before it begins, so
189 | # changing the positional parameters here affects neither the number of
190 | # iterations, nor the values presented in `arg`.
191 | shift # remove old arg
192 | set -- "$@" "$arg" # push replacement arg
193 | done
194 | fi
195 |
196 | # Collect all arguments for the java command;
197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198 | # shell script including quotes and variable substitutions, so put them in
199 | # double quotes to make sure that they get re-expanded; and
200 | # * put everything else in single quotes, so that it's not re-expanded.
201 |
202 | set -- \
203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
204 | -classpath "$CLASSPATH" \
205 | org.gradle.wrapper.GradleWrapperMain \
206 | "$@"
207 |
208 | # Stop when "xargs" is not available.
209 | if ! command -v xargs >/dev/null 2>&1
210 | then
211 | die "xargs is not available"
212 | fi
213 |
214 | # Use "xargs" to parse quoted args.
215 | #
216 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
217 | #
218 | # In Bash we could simply go:
219 | #
220 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
221 | # set -- "${ARGS[@]}" "$@"
222 | #
223 | # but POSIX shell has neither arrays nor command substitution, so instead we
224 | # post-process each arg (as a line of input to sed) to backslash-escape any
225 | # character that might be a shell metacharacter, then use eval to reverse
226 | # that process (while maintaining the separation between arguments), and wrap
227 | # the whole thing up as a single "set" statement.
228 | #
229 | # This will of course break if any of these variables contains a newline or
230 | # an unmatched quote.
231 | #
232 |
233 | eval "set -- $(
234 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
235 | xargs -n1 |
236 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
237 | tr '\n' ' '
238 | )" '"$@"'
239 |
240 | exec "$JAVACMD" "$@"
241 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%"=="" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%"=="" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if %ERRORLEVEL% equ 0 goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if %ERRORLEVEL% equ 0 goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | set EXIT_CODE=%ERRORLEVEL%
84 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
85 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
86 | exit /b %EXIT_CODE%
87 |
88 | :mainEnd
89 | if "%OS%"=="Windows_NT" endlocal
90 |
91 | :omega
92 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'sweet-sheet-example'
2 |
3 | apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle");
4 | useExpoModules()
5 |
6 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
7 | applyNativeModulesSettingsGradle(settings)
8 |
9 | include ':app'
10 | includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile())
11 |
--------------------------------------------------------------------------------
/example/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "name": "sweet-sheet-example",
4 | "slug": "sweet-sheet-example",
5 | "version": "1.0.0",
6 | "orientation": "portrait",
7 | "icon": "./assets/icon.png",
8 | "userInterfaceStyle": "light",
9 | "splash": {
10 | "image": "./assets/splash.png",
11 | "resizeMode": "contain",
12 | "backgroundColor": "#ffffff"
13 | },
14 | "assetBundlePatterns": [
15 | "**/*"
16 | ],
17 | "ios": {
18 | "supportsTablet": true,
19 | "bundleIdentifier": "expo.modules.sweetsheet.example"
20 | },
21 | "android": {
22 | "adaptiveIcon": {
23 | "foregroundImage": "./assets/adaptive-icon.png",
24 | "backgroundColor": "#ffffff"
25 | },
26 | "package": "expo.modules.sweetsheet.example"
27 | },
28 | "web": {
29 | "favicon": "./assets/favicon.png"
30 | },
31 | "plugins": [["../app.plugin.js"]]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/example/assets/adaptive-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/assets/adaptive-icon.png
--------------------------------------------------------------------------------
/example/assets/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/assets/favicon.png
--------------------------------------------------------------------------------
/example/assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/assets/icon.png
--------------------------------------------------------------------------------
/example/assets/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/assets/splash.png
--------------------------------------------------------------------------------
/example/babel.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | module.exports = function (api) {
3 | api.cache(true);
4 | return {
5 | presets: ['babel-preset-expo'],
6 | plugins: [
7 | [
8 | 'module-resolver',
9 | {
10 | extensions: ['.tsx', '.ts', '.js', '.json'],
11 | alias: {
12 | // For development, we want to alias the library to the source
13 | 'sweet-sheet': path.join(__dirname, '..', 'src', 'index.ts'),
14 | },
15 | },
16 | ],
17 | ],
18 | };
19 | };
20 |
--------------------------------------------------------------------------------
/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 | .xcode.env.local
25 |
26 | # Bundle artifacts
27 | *.jsbundle
28 |
29 | # CocoaPods
30 | /Pods/
31 |
--------------------------------------------------------------------------------
/example/ios/.xcode.env:
--------------------------------------------------------------------------------
1 | # This `.xcode.env` file is versioned and is used to source the environment
2 | # used when running script phases inside Xcode.
3 | # To customize your local environment, you can create an `.xcode.env.local`
4 | # file that is not versioned.
5 |
6 | # NODE_BINARY variable contains the PATH to the node executable.
7 | #
8 | # Customize the NODE_BINARY variable here.
9 | # For example, to use nvm with brew, add the following line
10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use
11 | export NODE_BINARY=$(command -v node)
12 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2 | require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
3 |
4 | require 'json'
5 | podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
6 |
7 | ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
8 | ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
9 |
10 | platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
11 | install! 'cocoapods',
12 | :deterministic_uuids => false
13 |
14 | prepare_react_native_project!
15 |
16 | # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
17 | # because `react-native-flipper` depends on (FlipperKit,...), which will be excluded. To fix this,
18 | # you can also exclude `react-native-flipper` in `react-native.config.js`
19 | #
20 | # ```js
21 | # module.exports = {
22 | # dependencies: {
23 | # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
24 | # }
25 | # }
26 | # ```
27 | flipper_config = FlipperConfiguration.disabled
28 | if ENV['NO_FLIPPER'] == '1' then
29 | # Explicitly disabled through environment variables
30 | flipper_config = FlipperConfiguration.disabled
31 | elsif podfile_properties.key?('ios.flipper') then
32 | # Configure Flipper in Podfile.properties.json
33 | if podfile_properties['ios.flipper'] == 'true' then
34 | flipper_config = FlipperConfiguration.enabled(["Debug", "Release"])
35 | elsif podfile_properties['ios.flipper'] != 'false' then
36 | flipper_config = FlipperConfiguration.enabled(["Debug", "Release"], { 'Flipper' => podfile_properties['ios.flipper'] })
37 | end
38 | end
39 |
40 | target 'sweetsheetexample' do
41 | use_expo_modules!
42 | config = use_native_modules!
43 |
44 | use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
45 | use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
46 |
47 | # Flags change depending on the env values.
48 | flags = get_default_flags()
49 |
50 | use_react_native!(
51 | :path => config[:reactNativePath],
52 | :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
53 | :fabric_enabled => flags[:fabric_enabled],
54 | # An absolute path to your application root.
55 | :app_path => "#{Pod::Config.instance.installation_root}/..",
56 | # Note that if you have use_frameworks! enabled, Flipper will not work if enabled
57 | :flipper_configuration => flipper_config
58 | )
59 |
60 | post_install do |installer|
61 | react_native_post_install(
62 | installer,
63 | config[:reactNativePath],
64 | :mac_catalyst_enabled => false
65 | )
66 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
67 |
68 | # This is necessary for Xcode 14, because it signs resource bundles by default
69 | # when building for devices.
70 | installer.target_installation_results.pod_target_installation_results
71 | .each do |pod_name, target_installation_result|
72 | target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
73 | resource_bundle_target.build_configurations.each do |config|
74 | config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
75 | end
76 | end
77 | end
78 | end
79 |
80 | post_integrate do |installer|
81 | begin
82 | expo_patch_react_imports!(installer)
83 | rescue => e
84 | Pod::UI.warn e
85 | end
86 | end
87 | end
88 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost (1.76.0)
3 | - DoubleConversion (1.1.6)
4 | - EXApplication (5.3.1):
5 | - ExpoModulesCore
6 | - EXConstants (14.4.2):
7 | - ExpoModulesCore
8 | - EXFileSystem (15.4.4):
9 | - ExpoModulesCore
10 | - EXFont (11.4.0):
11 | - ExpoModulesCore
12 | - Expo (49.0.16):
13 | - ExpoModulesCore
14 | - ExpoKeepAwake (12.3.0):
15 | - ExpoModulesCore
16 | - ExpoModulesCore (1.5.11):
17 | - RCT-Folly (= 2021.07.22.00)
18 | - React-Core
19 | - React-NativeModulesApple
20 | - React-RCTAppDelegate
21 | - ReactCommon/turbomodule/core
22 | - EXSplashScreen (0.20.5):
23 | - ExpoModulesCore
24 | - RCT-Folly (= 2021.07.22.00)
25 | - React-Core
26 | - FBLazyVector (0.72.6)
27 | - FBReactNativeSpec (0.72.6):
28 | - RCT-Folly (= 2021.07.22.00)
29 | - RCTRequired (= 0.72.6)
30 | - RCTTypeSafety (= 0.72.6)
31 | - React-Core (= 0.72.6)
32 | - React-jsi (= 0.72.6)
33 | - ReactCommon/turbomodule/core (= 0.72.6)
34 | - fmt (6.2.1)
35 | - glog (0.3.5)
36 | - hermes-engine (0.72.6):
37 | - hermes-engine/Pre-built (= 0.72.6)
38 | - hermes-engine/Pre-built (0.72.6)
39 | - libevent (2.1.12)
40 | - RCT-Folly (2021.07.22.00):
41 | - boost
42 | - DoubleConversion
43 | - fmt (~> 6.2.1)
44 | - glog
45 | - RCT-Folly/Default (= 2021.07.22.00)
46 | - RCT-Folly/Default (2021.07.22.00):
47 | - boost
48 | - DoubleConversion
49 | - fmt (~> 6.2.1)
50 | - glog
51 | - RCT-Folly/Futures (2021.07.22.00):
52 | - boost
53 | - DoubleConversion
54 | - fmt (~> 6.2.1)
55 | - glog
56 | - libevent
57 | - RCTRequired (0.72.6)
58 | - RCTTypeSafety (0.72.6):
59 | - FBLazyVector (= 0.72.6)
60 | - RCTRequired (= 0.72.6)
61 | - React-Core (= 0.72.6)
62 | - React (0.72.6):
63 | - React-Core (= 0.72.6)
64 | - React-Core/DevSupport (= 0.72.6)
65 | - React-Core/RCTWebSocket (= 0.72.6)
66 | - React-RCTActionSheet (= 0.72.6)
67 | - React-RCTAnimation (= 0.72.6)
68 | - React-RCTBlob (= 0.72.6)
69 | - React-RCTImage (= 0.72.6)
70 | - React-RCTLinking (= 0.72.6)
71 | - React-RCTNetwork (= 0.72.6)
72 | - React-RCTSettings (= 0.72.6)
73 | - React-RCTText (= 0.72.6)
74 | - React-RCTVibration (= 0.72.6)
75 | - React-callinvoker (0.72.6)
76 | - React-Codegen (0.72.6):
77 | - DoubleConversion
78 | - FBReactNativeSpec
79 | - glog
80 | - hermes-engine
81 | - RCT-Folly
82 | - RCTRequired
83 | - RCTTypeSafety
84 | - React-Core
85 | - React-jsi
86 | - React-jsiexecutor
87 | - React-NativeModulesApple
88 | - React-rncore
89 | - ReactCommon/turbomodule/bridging
90 | - ReactCommon/turbomodule/core
91 | - React-Core (0.72.6):
92 | - glog
93 | - hermes-engine
94 | - RCT-Folly (= 2021.07.22.00)
95 | - React-Core/Default (= 0.72.6)
96 | - React-cxxreact
97 | - React-hermes
98 | - React-jsi
99 | - React-jsiexecutor
100 | - React-perflogger
101 | - React-runtimeexecutor
102 | - React-utils
103 | - SocketRocket (= 0.6.1)
104 | - Yoga
105 | - React-Core/CoreModulesHeaders (0.72.6):
106 | - glog
107 | - hermes-engine
108 | - RCT-Folly (= 2021.07.22.00)
109 | - React-Core/Default
110 | - React-cxxreact
111 | - React-hermes
112 | - React-jsi
113 | - React-jsiexecutor
114 | - React-perflogger
115 | - React-runtimeexecutor
116 | - React-utils
117 | - SocketRocket (= 0.6.1)
118 | - Yoga
119 | - React-Core/Default (0.72.6):
120 | - glog
121 | - hermes-engine
122 | - RCT-Folly (= 2021.07.22.00)
123 | - React-cxxreact
124 | - React-hermes
125 | - React-jsi
126 | - React-jsiexecutor
127 | - React-perflogger
128 | - React-runtimeexecutor
129 | - React-utils
130 | - SocketRocket (= 0.6.1)
131 | - Yoga
132 | - React-Core/DevSupport (0.72.6):
133 | - glog
134 | - hermes-engine
135 | - RCT-Folly (= 2021.07.22.00)
136 | - React-Core/Default (= 0.72.6)
137 | - React-Core/RCTWebSocket (= 0.72.6)
138 | - React-cxxreact
139 | - React-hermes
140 | - React-jsi
141 | - React-jsiexecutor
142 | - React-jsinspector (= 0.72.6)
143 | - React-perflogger
144 | - React-runtimeexecutor
145 | - React-utils
146 | - SocketRocket (= 0.6.1)
147 | - Yoga
148 | - React-Core/RCTActionSheetHeaders (0.72.6):
149 | - glog
150 | - hermes-engine
151 | - RCT-Folly (= 2021.07.22.00)
152 | - React-Core/Default
153 | - React-cxxreact
154 | - React-hermes
155 | - React-jsi
156 | - React-jsiexecutor
157 | - React-perflogger
158 | - React-runtimeexecutor
159 | - React-utils
160 | - SocketRocket (= 0.6.1)
161 | - Yoga
162 | - React-Core/RCTAnimationHeaders (0.72.6):
163 | - glog
164 | - hermes-engine
165 | - RCT-Folly (= 2021.07.22.00)
166 | - React-Core/Default
167 | - React-cxxreact
168 | - React-hermes
169 | - React-jsi
170 | - React-jsiexecutor
171 | - React-perflogger
172 | - React-runtimeexecutor
173 | - React-utils
174 | - SocketRocket (= 0.6.1)
175 | - Yoga
176 | - React-Core/RCTBlobHeaders (0.72.6):
177 | - glog
178 | - hermes-engine
179 | - RCT-Folly (= 2021.07.22.00)
180 | - React-Core/Default
181 | - React-cxxreact
182 | - React-hermes
183 | - React-jsi
184 | - React-jsiexecutor
185 | - React-perflogger
186 | - React-runtimeexecutor
187 | - React-utils
188 | - SocketRocket (= 0.6.1)
189 | - Yoga
190 | - React-Core/RCTImageHeaders (0.72.6):
191 | - glog
192 | - hermes-engine
193 | - RCT-Folly (= 2021.07.22.00)
194 | - React-Core/Default
195 | - React-cxxreact
196 | - React-hermes
197 | - React-jsi
198 | - React-jsiexecutor
199 | - React-perflogger
200 | - React-runtimeexecutor
201 | - React-utils
202 | - SocketRocket (= 0.6.1)
203 | - Yoga
204 | - React-Core/RCTLinkingHeaders (0.72.6):
205 | - glog
206 | - hermes-engine
207 | - RCT-Folly (= 2021.07.22.00)
208 | - React-Core/Default
209 | - React-cxxreact
210 | - React-hermes
211 | - React-jsi
212 | - React-jsiexecutor
213 | - React-perflogger
214 | - React-runtimeexecutor
215 | - React-utils
216 | - SocketRocket (= 0.6.1)
217 | - Yoga
218 | - React-Core/RCTNetworkHeaders (0.72.6):
219 | - glog
220 | - hermes-engine
221 | - RCT-Folly (= 2021.07.22.00)
222 | - React-Core/Default
223 | - React-cxxreact
224 | - React-hermes
225 | - React-jsi
226 | - React-jsiexecutor
227 | - React-perflogger
228 | - React-runtimeexecutor
229 | - React-utils
230 | - SocketRocket (= 0.6.1)
231 | - Yoga
232 | - React-Core/RCTSettingsHeaders (0.72.6):
233 | - glog
234 | - hermes-engine
235 | - RCT-Folly (= 2021.07.22.00)
236 | - React-Core/Default
237 | - React-cxxreact
238 | - React-hermes
239 | - React-jsi
240 | - React-jsiexecutor
241 | - React-perflogger
242 | - React-runtimeexecutor
243 | - React-utils
244 | - SocketRocket (= 0.6.1)
245 | - Yoga
246 | - React-Core/RCTTextHeaders (0.72.6):
247 | - glog
248 | - hermes-engine
249 | - RCT-Folly (= 2021.07.22.00)
250 | - React-Core/Default
251 | - React-cxxreact
252 | - React-hermes
253 | - React-jsi
254 | - React-jsiexecutor
255 | - React-perflogger
256 | - React-runtimeexecutor
257 | - React-utils
258 | - SocketRocket (= 0.6.1)
259 | - Yoga
260 | - React-Core/RCTVibrationHeaders (0.72.6):
261 | - glog
262 | - hermes-engine
263 | - RCT-Folly (= 2021.07.22.00)
264 | - React-Core/Default
265 | - React-cxxreact
266 | - React-hermes
267 | - React-jsi
268 | - React-jsiexecutor
269 | - React-perflogger
270 | - React-runtimeexecutor
271 | - React-utils
272 | - SocketRocket (= 0.6.1)
273 | - Yoga
274 | - React-Core/RCTWebSocket (0.72.6):
275 | - glog
276 | - hermes-engine
277 | - RCT-Folly (= 2021.07.22.00)
278 | - React-Core/Default (= 0.72.6)
279 | - React-cxxreact
280 | - React-hermes
281 | - React-jsi
282 | - React-jsiexecutor
283 | - React-perflogger
284 | - React-runtimeexecutor
285 | - React-utils
286 | - SocketRocket (= 0.6.1)
287 | - Yoga
288 | - React-CoreModules (0.72.6):
289 | - RCT-Folly (= 2021.07.22.00)
290 | - RCTTypeSafety (= 0.72.6)
291 | - React-Codegen (= 0.72.6)
292 | - React-Core/CoreModulesHeaders (= 0.72.6)
293 | - React-jsi (= 0.72.6)
294 | - React-RCTBlob
295 | - React-RCTImage (= 0.72.6)
296 | - ReactCommon/turbomodule/core (= 0.72.6)
297 | - SocketRocket (= 0.6.1)
298 | - React-cxxreact (0.72.6):
299 | - boost (= 1.76.0)
300 | - DoubleConversion
301 | - glog
302 | - hermes-engine
303 | - RCT-Folly (= 2021.07.22.00)
304 | - React-callinvoker (= 0.72.6)
305 | - React-debug (= 0.72.6)
306 | - React-jsi (= 0.72.6)
307 | - React-jsinspector (= 0.72.6)
308 | - React-logger (= 0.72.6)
309 | - React-perflogger (= 0.72.6)
310 | - React-runtimeexecutor (= 0.72.6)
311 | - React-debug (0.72.6)
312 | - React-hermes (0.72.6):
313 | - DoubleConversion
314 | - glog
315 | - hermes-engine
316 | - RCT-Folly (= 2021.07.22.00)
317 | - RCT-Folly/Futures (= 2021.07.22.00)
318 | - React-cxxreact (= 0.72.6)
319 | - React-jsi
320 | - React-jsiexecutor (= 0.72.6)
321 | - React-jsinspector (= 0.72.6)
322 | - React-perflogger (= 0.72.6)
323 | - React-jsi (0.72.6):
324 | - boost (= 1.76.0)
325 | - DoubleConversion
326 | - glog
327 | - hermes-engine
328 | - RCT-Folly (= 2021.07.22.00)
329 | - React-jsiexecutor (0.72.6):
330 | - DoubleConversion
331 | - glog
332 | - hermes-engine
333 | - RCT-Folly (= 2021.07.22.00)
334 | - React-cxxreact (= 0.72.6)
335 | - React-jsi (= 0.72.6)
336 | - React-perflogger (= 0.72.6)
337 | - React-jsinspector (0.72.6)
338 | - React-logger (0.72.6):
339 | - glog
340 | - React-NativeModulesApple (0.72.6):
341 | - hermes-engine
342 | - React-callinvoker
343 | - React-Core
344 | - React-cxxreact
345 | - React-jsi
346 | - React-runtimeexecutor
347 | - ReactCommon/turbomodule/bridging
348 | - ReactCommon/turbomodule/core
349 | - React-perflogger (0.72.6)
350 | - React-RCTActionSheet (0.72.6):
351 | - React-Core/RCTActionSheetHeaders (= 0.72.6)
352 | - React-RCTAnimation (0.72.6):
353 | - RCT-Folly (= 2021.07.22.00)
354 | - RCTTypeSafety (= 0.72.6)
355 | - React-Codegen (= 0.72.6)
356 | - React-Core/RCTAnimationHeaders (= 0.72.6)
357 | - React-jsi (= 0.72.6)
358 | - ReactCommon/turbomodule/core (= 0.72.6)
359 | - React-RCTAppDelegate (0.72.6):
360 | - RCT-Folly
361 | - RCTRequired
362 | - RCTTypeSafety
363 | - React-Core
364 | - React-CoreModules
365 | - React-hermes
366 | - React-NativeModulesApple
367 | - React-RCTImage
368 | - React-RCTNetwork
369 | - React-runtimescheduler
370 | - ReactCommon/turbomodule/core
371 | - React-RCTBlob (0.72.6):
372 | - hermes-engine
373 | - RCT-Folly (= 2021.07.22.00)
374 | - React-Codegen (= 0.72.6)
375 | - React-Core/RCTBlobHeaders (= 0.72.6)
376 | - React-Core/RCTWebSocket (= 0.72.6)
377 | - React-jsi (= 0.72.6)
378 | - React-RCTNetwork (= 0.72.6)
379 | - ReactCommon/turbomodule/core (= 0.72.6)
380 | - React-RCTImage (0.72.6):
381 | - RCT-Folly (= 2021.07.22.00)
382 | - RCTTypeSafety (= 0.72.6)
383 | - React-Codegen (= 0.72.6)
384 | - React-Core/RCTImageHeaders (= 0.72.6)
385 | - React-jsi (= 0.72.6)
386 | - React-RCTNetwork (= 0.72.6)
387 | - ReactCommon/turbomodule/core (= 0.72.6)
388 | - React-RCTLinking (0.72.6):
389 | - React-Codegen (= 0.72.6)
390 | - React-Core/RCTLinkingHeaders (= 0.72.6)
391 | - React-jsi (= 0.72.6)
392 | - ReactCommon/turbomodule/core (= 0.72.6)
393 | - React-RCTNetwork (0.72.6):
394 | - RCT-Folly (= 2021.07.22.00)
395 | - RCTTypeSafety (= 0.72.6)
396 | - React-Codegen (= 0.72.6)
397 | - React-Core/RCTNetworkHeaders (= 0.72.6)
398 | - React-jsi (= 0.72.6)
399 | - ReactCommon/turbomodule/core (= 0.72.6)
400 | - React-RCTSettings (0.72.6):
401 | - RCT-Folly (= 2021.07.22.00)
402 | - RCTTypeSafety (= 0.72.6)
403 | - React-Codegen (= 0.72.6)
404 | - React-Core/RCTSettingsHeaders (= 0.72.6)
405 | - React-jsi (= 0.72.6)
406 | - ReactCommon/turbomodule/core (= 0.72.6)
407 | - React-RCTText (0.72.6):
408 | - React-Core/RCTTextHeaders (= 0.72.6)
409 | - React-RCTVibration (0.72.6):
410 | - RCT-Folly (= 2021.07.22.00)
411 | - React-Codegen (= 0.72.6)
412 | - React-Core/RCTVibrationHeaders (= 0.72.6)
413 | - React-jsi (= 0.72.6)
414 | - ReactCommon/turbomodule/core (= 0.72.6)
415 | - React-rncore (0.72.6)
416 | - React-runtimeexecutor (0.72.6):
417 | - React-jsi (= 0.72.6)
418 | - React-runtimescheduler (0.72.6):
419 | - glog
420 | - hermes-engine
421 | - RCT-Folly (= 2021.07.22.00)
422 | - React-callinvoker
423 | - React-debug
424 | - React-jsi
425 | - React-runtimeexecutor
426 | - React-utils (0.72.6):
427 | - glog
428 | - RCT-Folly (= 2021.07.22.00)
429 | - React-debug
430 | - ReactCommon/turbomodule/bridging (0.72.6):
431 | - DoubleConversion
432 | - glog
433 | - hermes-engine
434 | - RCT-Folly (= 2021.07.22.00)
435 | - React-callinvoker (= 0.72.6)
436 | - React-cxxreact (= 0.72.6)
437 | - React-jsi (= 0.72.6)
438 | - React-logger (= 0.72.6)
439 | - React-perflogger (= 0.72.6)
440 | - ReactCommon/turbomodule/core (0.72.6):
441 | - DoubleConversion
442 | - glog
443 | - hermes-engine
444 | - RCT-Folly (= 2021.07.22.00)
445 | - React-callinvoker (= 0.72.6)
446 | - React-cxxreact (= 0.72.6)
447 | - React-jsi (= 0.72.6)
448 | - React-logger (= 0.72.6)
449 | - React-perflogger (= 0.72.6)
450 | - SocketRocket (0.6.1)
451 | - SweetSheet (0.1.0):
452 | - ExpoModulesCore
453 | - Yoga (1.14.0)
454 |
455 | DEPENDENCIES:
456 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
457 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
458 | - EXApplication (from `../node_modules/expo-application/ios`)
459 | - EXConstants (from `../node_modules/expo-constants/ios`)
460 | - EXFileSystem (from `../node_modules/expo-file-system/ios`)
461 | - EXFont (from `../node_modules/expo-font/ios`)
462 | - Expo (from `../node_modules/expo`)
463 | - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
464 | - ExpoModulesCore (from `../node_modules/expo-modules-core`)
465 | - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
466 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
467 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
468 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
469 | - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
470 | - libevent (~> 2.1.12)
471 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
472 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
473 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
474 | - React (from `../node_modules/react-native/`)
475 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
476 | - React-Codegen (from `build/generated/ios`)
477 | - React-Core (from `../node_modules/react-native/`)
478 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
479 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
480 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
481 | - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`)
482 | - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
483 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
484 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
485 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
486 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
487 | - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
488 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
489 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
490 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
491 | - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`)
492 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
493 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
494 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
495 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
496 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
497 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
498 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
499 | - React-rncore (from `../node_modules/react-native/ReactCommon`)
500 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
501 | - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
502 | - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
503 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
504 | - SweetSheet (from `../../ios`)
505 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
506 |
507 | SPEC REPOS:
508 | trunk:
509 | - fmt
510 | - libevent
511 | - SocketRocket
512 |
513 | EXTERNAL SOURCES:
514 | boost:
515 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
516 | DoubleConversion:
517 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
518 | EXApplication:
519 | :path: "../node_modules/expo-application/ios"
520 | EXConstants:
521 | :path: "../node_modules/expo-constants/ios"
522 | EXFileSystem:
523 | :path: "../node_modules/expo-file-system/ios"
524 | EXFont:
525 | :path: "../node_modules/expo-font/ios"
526 | Expo:
527 | :path: "../node_modules/expo"
528 | ExpoKeepAwake:
529 | :path: "../node_modules/expo-keep-awake/ios"
530 | ExpoModulesCore:
531 | :path: "../node_modules/expo-modules-core"
532 | EXSplashScreen:
533 | :path: "../node_modules/expo-splash-screen/ios"
534 | FBLazyVector:
535 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
536 | FBReactNativeSpec:
537 | :path: "../node_modules/react-native/React/FBReactNativeSpec"
538 | glog:
539 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
540 | hermes-engine:
541 | :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
542 | :tag: hermes-2023-08-07-RNv0.72.4-813b2def12bc9df02654b3e3653ae4a68d0572e0
543 | RCT-Folly:
544 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
545 | RCTRequired:
546 | :path: "../node_modules/react-native/Libraries/RCTRequired"
547 | RCTTypeSafety:
548 | :path: "../node_modules/react-native/Libraries/TypeSafety"
549 | React:
550 | :path: "../node_modules/react-native/"
551 | React-callinvoker:
552 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
553 | React-Codegen:
554 | :path: build/generated/ios
555 | React-Core:
556 | :path: "../node_modules/react-native/"
557 | React-CoreModules:
558 | :path: "../node_modules/react-native/React/CoreModules"
559 | React-cxxreact:
560 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
561 | React-debug:
562 | :path: "../node_modules/react-native/ReactCommon/react/debug"
563 | React-hermes:
564 | :path: "../node_modules/react-native/ReactCommon/hermes"
565 | React-jsi:
566 | :path: "../node_modules/react-native/ReactCommon/jsi"
567 | React-jsiexecutor:
568 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
569 | React-jsinspector:
570 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
571 | React-logger:
572 | :path: "../node_modules/react-native/ReactCommon/logger"
573 | React-NativeModulesApple:
574 | :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
575 | React-perflogger:
576 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
577 | React-RCTActionSheet:
578 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
579 | React-RCTAnimation:
580 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
581 | React-RCTAppDelegate:
582 | :path: "../node_modules/react-native/Libraries/AppDelegate"
583 | React-RCTBlob:
584 | :path: "../node_modules/react-native/Libraries/Blob"
585 | React-RCTImage:
586 | :path: "../node_modules/react-native/Libraries/Image"
587 | React-RCTLinking:
588 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
589 | React-RCTNetwork:
590 | :path: "../node_modules/react-native/Libraries/Network"
591 | React-RCTSettings:
592 | :path: "../node_modules/react-native/Libraries/Settings"
593 | React-RCTText:
594 | :path: "../node_modules/react-native/Libraries/Text"
595 | React-RCTVibration:
596 | :path: "../node_modules/react-native/Libraries/Vibration"
597 | React-rncore:
598 | :path: "../node_modules/react-native/ReactCommon"
599 | React-runtimeexecutor:
600 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
601 | React-runtimescheduler:
602 | :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler"
603 | React-utils:
604 | :path: "../node_modules/react-native/ReactCommon/react/utils"
605 | ReactCommon:
606 | :path: "../node_modules/react-native/ReactCommon"
607 | SweetSheet:
608 | :path: "../../ios"
609 | Yoga:
610 | :path: "../node_modules/react-native/ReactCommon/yoga"
611 |
612 | SPEC CHECKSUMS:
613 | boost: 57d2868c099736d80fcd648bf211b4431e51a558
614 | DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
615 | EXApplication: 042aa2e3f05258a16962ea1a9914bf288db9c9a1
616 | EXConstants: ce5bbea779da8031ac818c36bea41b10e14d04e1
617 | EXFileSystem: 2b826a3bf1071a4b80a8457e97124783d1ac860e
618 | EXFont: 738c44c390953ebcbab075a4848bfbef025fd9ee
619 | Expo: fcfd60c1ed6806dee5103b210335ae0c72f675ed
620 | ExpoKeepAwake: be4cbd52d9b177cde0fd66daa1913afa3161fc1d
621 | ExpoModulesCore: 51cb2e7ab4c8da14be3f40b66d54c1781002e99d
622 | EXSplashScreen: c0e7f2d4a640f3b875808ed0b88575538daf6d82
623 | FBLazyVector: 748c0ef74f2bf4b36cfcccf37916806940a64c32
624 | FBReactNativeSpec: 966f29e4e697de53a3b366355e8f57375c856ad9
625 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
626 | glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
627 | hermes-engine: 8057e75cfc1437b178ac86c8654b24e7fead7f60
628 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
629 | RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
630 | RCTRequired: 28469809442eb4eb5528462705f7d852948c8a74
631 | RCTTypeSafety: e9c6c409fca2cc584e5b086862d562540cb38d29
632 | React: 769f469909b18edfe934f0539fffb319c4c61043
633 | React-callinvoker: e48ce12c83706401251921896576710d81e54763
634 | React-Codegen: a136b8094d39fd071994eaa935366e6be2239cb1
635 | React-Core: e548a186fb01c3a78a9aeeffa212d625ca9511bf
636 | React-CoreModules: d226b22d06ea1bc4e49d3c073b2c6cbb42265405
637 | React-cxxreact: 44a3560510ead6633b6e02f9fbbdd1772fb40f92
638 | React-debug: 238501490155574ae9f3f8dd1c74330eba30133e
639 | React-hermes: 46e66dc854124d7645c20bfec0a6be9542826ecd
640 | React-jsi: fbdaf4166bae60524b591b18c851b530c8cdb90c
641 | React-jsiexecutor: 3bf18ff7cb03cd8dfdce08fbbc0d15058c1d71ae
642 | React-jsinspector: 194e32c6aab382d88713ad3dd0025c5f5c4ee072
643 | React-logger: cebf22b6cf43434e471dc561e5911b40ac01d289
644 | React-NativeModulesApple: 02e35e9a51e10c6422f04f5e4076a7c02243fff2
645 | React-perflogger: e3596db7e753f51766bceadc061936ef1472edc3
646 | React-RCTActionSheet: 17ab132c748b4471012abbcdcf5befe860660485
647 | React-RCTAnimation: c8bbaab62be5817d2a31c36d5f2571e3f7dcf099
648 | React-RCTAppDelegate: af1c7dace233deba4b933cd1d6491fe4e3584ad1
649 | React-RCTBlob: 1bcf3a0341eb8d6950009b1ddb8aefaf46996b8c
650 | React-RCTImage: 670a3486b532292649b1aef3ffddd0b495a5cee4
651 | React-RCTLinking: bd7ab853144aed463903237e615fd91d11b4f659
652 | React-RCTNetwork: be86a621f3e4724758f23ad1fdce32474ab3d829
653 | React-RCTSettings: 4f3a29a6d23ffa639db9701bc29af43f30781058
654 | React-RCTText: adde32164a243103aaba0b1dc7b0a2599733873e
655 | React-RCTVibration: 6bd85328388ac2e82ae0ca11afe48ad5555b483a
656 | React-rncore: fda7b1ae5918fa7baa259105298a5487875a57c8
657 | React-runtimeexecutor: 57d85d942862b08f6d15441a0badff2542fd233c
658 | React-runtimescheduler: f23e337008403341177fc52ee4ca94e442c17ede
659 | React-utils: fa59c9a3375fb6f4aeb66714fd3f7f76b43a9f16
660 | ReactCommon: dd03c17275c200496f346af93a7b94c53f3093a4
661 | SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
662 | SweetSheet: 42cf71a4fb8bf12afb4a0fcca42ec6a3d5e8dc4e
663 | Yoga: b76f1acfda8212aa16b7e26bcce3983230c82603
664 |
665 | PODFILE CHECKSUM: 985d6955bc4344591c587b1e80c64e603f4cb187
666 |
667 | COCOAPODS: 1.13.0
668 |
--------------------------------------------------------------------------------
/example/ios/Podfile.properties.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo.jsEngine": "hermes",
3 | "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true"
4 | }
5 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
13 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
14 | 96905EF65AED1B983A6B3ABC /* libPods-sweetsheetexample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-sweetsheetexample.a */; };
15 | 9F91A0E873254B10ABF89CB8 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74967B608FDA42A7AF17EF0F /* noop-file.swift */; };
16 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
17 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | 13B07F961A680F5B00A75B9A /* sweetsheetexample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = sweetsheetexample.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = sweetsheetexample/AppDelegate.h; sourceTree = ""; };
23 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = sweetsheetexample/AppDelegate.mm; sourceTree = ""; };
24 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = sweetsheetexample/Images.xcassets; sourceTree = ""; };
25 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = sweetsheetexample/Info.plist; sourceTree = ""; };
26 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = sweetsheetexample/main.m; sourceTree = ""; };
27 | 22BE6920D4B149E0895680A7 /* sweetsheetexample-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "sweetsheetexample-Bridging-Header.h"; path = "sweetsheetexample/sweetsheetexample-Bridging-Header.h"; sourceTree = ""; };
28 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-sweetsheetexample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-sweetsheetexample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
29 | 6C2E3173556A471DD304B334 /* Pods-sweetsheetexample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sweetsheetexample.debug.xcconfig"; path = "Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample.debug.xcconfig"; sourceTree = ""; };
30 | 74967B608FDA42A7AF17EF0F /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "sweetsheetexample/noop-file.swift"; sourceTree = ""; };
31 | 7A4D352CD337FB3A3BF06240 /* Pods-sweetsheetexample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sweetsheetexample.release.xcconfig"; path = "Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample.release.xcconfig"; sourceTree = ""; };
32 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = sweetsheetexample/SplashScreen.storyboard; sourceTree = ""; };
33 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; };
34 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
35 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-sweetsheetexample/ExpoModulesProvider.swift"; sourceTree = ""; };
36 | /* End PBXFileReference section */
37 |
38 | /* Begin PBXFrameworksBuildPhase section */
39 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
40 | isa = PBXFrameworksBuildPhase;
41 | buildActionMask = 2147483647;
42 | files = (
43 | 96905EF65AED1B983A6B3ABC /* libPods-sweetsheetexample.a in Frameworks */,
44 | );
45 | runOnlyForDeploymentPostprocessing = 0;
46 | };
47 | /* End PBXFrameworksBuildPhase section */
48 |
49 | /* Begin PBXGroup section */
50 | 13B07FAE1A68108700A75B9A /* sweetsheetexample */ = {
51 | isa = PBXGroup;
52 | children = (
53 | BB2F792B24A3F905000567C9 /* Supporting */,
54 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
55 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */,
56 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
57 | 13B07FB61A68108700A75B9A /* Info.plist */,
58 | 13B07FB71A68108700A75B9A /* main.m */,
59 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
60 | 74967B608FDA42A7AF17EF0F /* noop-file.swift */,
61 | 22BE6920D4B149E0895680A7 /* sweetsheetexample-Bridging-Header.h */,
62 | );
63 | name = sweetsheetexample;
64 | sourceTree = "";
65 | };
66 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
67 | isa = PBXGroup;
68 | children = (
69 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
70 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-sweetsheetexample.a */,
71 | );
72 | name = Frameworks;
73 | sourceTree = "";
74 | };
75 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
76 | isa = PBXGroup;
77 | children = (
78 | );
79 | name = Libraries;
80 | sourceTree = "";
81 | };
82 | 83CBB9F61A601CBA00E9B192 = {
83 | isa = PBXGroup;
84 | children = (
85 | 13B07FAE1A68108700A75B9A /* sweetsheetexample */,
86 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
87 | 83CBBA001A601CBA00E9B192 /* Products */,
88 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
89 | D65327D7A22EEC0BE12398D9 /* Pods */,
90 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */,
91 | );
92 | indentWidth = 2;
93 | sourceTree = "";
94 | tabWidth = 2;
95 | usesTabs = 0;
96 | };
97 | 83CBBA001A601CBA00E9B192 /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 13B07F961A680F5B00A75B9A /* sweetsheetexample.app */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 92DBD88DE9BF7D494EA9DA96 /* sweetsheetexample */ = {
106 | isa = PBXGroup;
107 | children = (
108 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */,
109 | );
110 | name = sweetsheetexample;
111 | sourceTree = "";
112 | };
113 | BB2F792B24A3F905000567C9 /* Supporting */ = {
114 | isa = PBXGroup;
115 | children = (
116 | BB2F792C24A3F905000567C9 /* Expo.plist */,
117 | );
118 | name = Supporting;
119 | path = sweetsheetexample/Supporting;
120 | sourceTree = "";
121 | };
122 | D65327D7A22EEC0BE12398D9 /* Pods */ = {
123 | isa = PBXGroup;
124 | children = (
125 | 6C2E3173556A471DD304B334 /* Pods-sweetsheetexample.debug.xcconfig */,
126 | 7A4D352CD337FB3A3BF06240 /* Pods-sweetsheetexample.release.xcconfig */,
127 | );
128 | path = Pods;
129 | sourceTree = "";
130 | };
131 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 92DBD88DE9BF7D494EA9DA96 /* sweetsheetexample */,
135 | );
136 | name = ExpoModulesProviders;
137 | sourceTree = "";
138 | };
139 | /* End PBXGroup section */
140 |
141 | /* Begin PBXNativeTarget section */
142 | 13B07F861A680F5B00A75B9A /* sweetsheetexample */ = {
143 | isa = PBXNativeTarget;
144 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "sweetsheetexample" */;
145 | buildPhases = (
146 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
147 | FD10A7F022414F080027D42C /* Start Packager */,
148 | C50AC2A003942B67AB694EAA /* [Expo] Configure project */,
149 | 13B07F871A680F5B00A75B9A /* Sources */,
150 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
151 | 13B07F8E1A680F5B00A75B9A /* Resources */,
152 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
153 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
154 | 9B1A278F80310B13F9FA2FB9 /* [CP] Embed Pods Frameworks */,
155 | );
156 | buildRules = (
157 | );
158 | dependencies = (
159 | );
160 | name = sweetsheetexample;
161 | productName = sweetsheetexample;
162 | productReference = 13B07F961A680F5B00A75B9A /* sweetsheetexample.app */;
163 | productType = "com.apple.product-type.application";
164 | };
165 | /* End PBXNativeTarget section */
166 |
167 | /* Begin PBXProject section */
168 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
169 | isa = PBXProject;
170 | attributes = {
171 | LastUpgradeCheck = 1130;
172 | TargetAttributes = {
173 | 13B07F861A680F5B00A75B9A = {
174 | LastSwiftMigration = 1250;
175 | };
176 | };
177 | };
178 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "sweetsheetexample" */;
179 | compatibilityVersion = "Xcode 3.2";
180 | developmentRegion = en;
181 | hasScannedForEncodings = 0;
182 | knownRegions = (
183 | en,
184 | Base,
185 | );
186 | mainGroup = 83CBB9F61A601CBA00E9B192;
187 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
188 | projectDirPath = "";
189 | projectRoot = "";
190 | targets = (
191 | 13B07F861A680F5B00A75B9A /* sweetsheetexample */,
192 | );
193 | };
194 | /* End PBXProject section */
195 |
196 | /* Begin PBXResourcesBuildPhase section */
197 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
198 | isa = PBXResourcesBuildPhase;
199 | buildActionMask = 2147483647;
200 | files = (
201 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
202 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
203 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
204 | );
205 | runOnlyForDeploymentPostprocessing = 0;
206 | };
207 | /* End PBXResourcesBuildPhase section */
208 |
209 | /* Begin PBXShellScriptBuildPhase section */
210 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
211 | isa = PBXShellScriptBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | );
215 | inputPaths = (
216 | );
217 | name = "Bundle React Native code and images";
218 | outputPaths = (
219 | );
220 | runOnlyForDeploymentPostprocessing = 0;
221 | shellPath = /bin/sh;
222 | shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios relative | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli')\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
223 | };
224 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
225 | isa = PBXShellScriptBuildPhase;
226 | buildActionMask = 2147483647;
227 | files = (
228 | );
229 | inputFileListPaths = (
230 | );
231 | inputPaths = (
232 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
233 | "${PODS_ROOT}/Manifest.lock",
234 | );
235 | name = "[CP] Check Pods Manifest.lock";
236 | outputFileListPaths = (
237 | );
238 | outputPaths = (
239 | "$(DERIVED_FILE_DIR)/Pods-sweetsheetexample-checkManifestLockResult.txt",
240 | );
241 | runOnlyForDeploymentPostprocessing = 0;
242 | shellPath = /bin/sh;
243 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
244 | showEnvVarsInLog = 0;
245 | };
246 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
247 | isa = PBXShellScriptBuildPhase;
248 | buildActionMask = 2147483647;
249 | files = (
250 | );
251 | inputPaths = (
252 | "${PODS_ROOT}/Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample-resources.sh",
253 | "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
254 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
255 | );
256 | name = "[CP] Copy Pods Resources";
257 | outputPaths = (
258 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
259 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
260 | );
261 | runOnlyForDeploymentPostprocessing = 0;
262 | shellPath = /bin/sh;
263 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample-resources.sh\"\n";
264 | showEnvVarsInLog = 0;
265 | };
266 | 9B1A278F80310B13F9FA2FB9 /* [CP] Embed Pods Frameworks */ = {
267 | isa = PBXShellScriptBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | );
271 | inputPaths = (
272 | "${PODS_ROOT}/Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample-frameworks.sh",
273 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
274 | );
275 | name = "[CP] Embed Pods Frameworks";
276 | outputPaths = (
277 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
278 | );
279 | runOnlyForDeploymentPostprocessing = 0;
280 | shellPath = /bin/sh;
281 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sweetsheetexample/Pods-sweetsheetexample-frameworks.sh\"\n";
282 | showEnvVarsInLog = 0;
283 | };
284 | C50AC2A003942B67AB694EAA /* [Expo] Configure project */ = {
285 | isa = PBXShellScriptBuildPhase;
286 | alwaysOutOfDate = 1;
287 | buildActionMask = 2147483647;
288 | files = (
289 | );
290 | inputFileListPaths = (
291 | );
292 | inputPaths = (
293 | );
294 | name = "[Expo] Configure project";
295 | outputFileListPaths = (
296 | );
297 | outputPaths = (
298 | );
299 | runOnlyForDeploymentPostprocessing = 0;
300 | shellPath = /bin/sh;
301 | shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-sweetsheetexample/expo-configure-project.sh\"\n";
302 | };
303 | FD10A7F022414F080027D42C /* Start Packager */ = {
304 | isa = PBXShellScriptBuildPhase;
305 | buildActionMask = 2147483647;
306 | files = (
307 | );
308 | inputFileListPaths = (
309 | );
310 | inputPaths = (
311 | );
312 | name = "Start Packager";
313 | outputFileListPaths = (
314 | );
315 | outputPaths = (
316 | );
317 | runOnlyForDeploymentPostprocessing = 0;
318 | shellPath = /bin/sh;
319 | shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\nexport RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open `$NODE_BINARY --print \"require('path').dirname(require.resolve('expo/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n";
320 | showEnvVarsInLog = 0;
321 | };
322 | /* End PBXShellScriptBuildPhase section */
323 |
324 | /* Begin PBXSourcesBuildPhase section */
325 | 13B07F871A680F5B00A75B9A /* Sources */ = {
326 | isa = PBXSourcesBuildPhase;
327 | buildActionMask = 2147483647;
328 | files = (
329 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
330 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
331 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
332 | 9F91A0E873254B10ABF89CB8 /* noop-file.swift in Sources */,
333 | );
334 | runOnlyForDeploymentPostprocessing = 0;
335 | };
336 | /* End PBXSourcesBuildPhase section */
337 |
338 | /* Begin XCBuildConfiguration section */
339 | 13B07F941A680F5B00A75B9A /* Debug */ = {
340 | isa = XCBuildConfiguration;
341 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-sweetsheetexample.debug.xcconfig */;
342 | buildSettings = {
343 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
344 | CLANG_ENABLE_MODULES = YES;
345 | CODE_SIGN_ENTITLEMENTS = sweetsheetexample/sweetsheetexample.entitlements;
346 | CURRENT_PROJECT_VERSION = 1;
347 | ENABLE_BITCODE = NO;
348 | GCC_PREPROCESSOR_DEFINITIONS = (
349 | "$(inherited)",
350 | "FB_SONARKIT_ENABLED=1",
351 | );
352 | INFOPLIST_FILE = sweetsheetexample/Info.plist;
353 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
354 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
355 | MARKETING_VERSION = 1.0;
356 | OTHER_LDFLAGS = (
357 | "$(inherited)",
358 | "-ObjC",
359 | "-lc++",
360 | );
361 | OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
362 | PRODUCT_BUNDLE_IDENTIFIER = expo.modules.sweetsheet.example;
363 | PRODUCT_NAME = sweetsheetexample;
364 | SWIFT_OBJC_BRIDGING_HEADER = "sweetsheetexample/sweetsheetexample-Bridging-Header.h";
365 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
366 | SWIFT_VERSION = 5.0;
367 | TARGETED_DEVICE_FAMILY = "1,2";
368 | VERSIONING_SYSTEM = "apple-generic";
369 | };
370 | name = Debug;
371 | };
372 | 13B07F951A680F5B00A75B9A /* Release */ = {
373 | isa = XCBuildConfiguration;
374 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-sweetsheetexample.release.xcconfig */;
375 | buildSettings = {
376 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
377 | CLANG_ENABLE_MODULES = YES;
378 | CODE_SIGN_ENTITLEMENTS = sweetsheetexample/sweetsheetexample.entitlements;
379 | CURRENT_PROJECT_VERSION = 1;
380 | INFOPLIST_FILE = sweetsheetexample/Info.plist;
381 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
382 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
383 | MARKETING_VERSION = 1.0;
384 | OTHER_LDFLAGS = (
385 | "$(inherited)",
386 | "-ObjC",
387 | "-lc++",
388 | );
389 | OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
390 | PRODUCT_BUNDLE_IDENTIFIER = expo.modules.sweetsheet.example;
391 | PRODUCT_NAME = sweetsheetexample;
392 | SWIFT_OBJC_BRIDGING_HEADER = "sweetsheetexample/sweetsheetexample-Bridging-Header.h";
393 | SWIFT_VERSION = 5.0;
394 | TARGETED_DEVICE_FAMILY = "1,2";
395 | VERSIONING_SYSTEM = "apple-generic";
396 | };
397 | name = Release;
398 | };
399 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
400 | isa = XCBuildConfiguration;
401 | buildSettings = {
402 | ALWAYS_SEARCH_USER_PATHS = NO;
403 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
404 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
405 | CLANG_CXX_LIBRARY = "libc++";
406 | CLANG_ENABLE_MODULES = YES;
407 | CLANG_ENABLE_OBJC_ARC = YES;
408 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
409 | CLANG_WARN_BOOL_CONVERSION = YES;
410 | CLANG_WARN_COMMA = YES;
411 | CLANG_WARN_CONSTANT_CONVERSION = YES;
412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
414 | CLANG_WARN_EMPTY_BODY = YES;
415 | CLANG_WARN_ENUM_CONVERSION = YES;
416 | CLANG_WARN_INFINITE_RECURSION = YES;
417 | CLANG_WARN_INT_CONVERSION = YES;
418 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
419 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
423 | CLANG_WARN_STRICT_PROTOTYPES = YES;
424 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
425 | CLANG_WARN_UNREACHABLE_CODE = YES;
426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
428 | COPY_PHASE_STRIP = NO;
429 | ENABLE_STRICT_OBJC_MSGSEND = YES;
430 | ENABLE_TESTABILITY = YES;
431 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
432 | GCC_C_LANGUAGE_STANDARD = gnu99;
433 | GCC_DYNAMIC_NO_PIC = NO;
434 | GCC_NO_COMMON_BLOCKS = YES;
435 | GCC_OPTIMIZATION_LEVEL = 0;
436 | GCC_PREPROCESSOR_DEFINITIONS = (
437 | "DEBUG=1",
438 | "$(inherited)",
439 | _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
440 | );
441 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
442 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
443 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
444 | GCC_WARN_UNDECLARED_SELECTOR = YES;
445 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
446 | GCC_WARN_UNUSED_FUNCTION = YES;
447 | GCC_WARN_UNUSED_VARIABLE = YES;
448 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
449 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
450 | LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
451 | MTL_ENABLE_DEBUG_INFO = YES;
452 | ONLY_ACTIVE_ARCH = YES;
453 | OTHER_CFLAGS = "$(inherited)";
454 | OTHER_CPLUSPLUSFLAGS = "$(inherited)";
455 | OTHER_LDFLAGS = (
456 | "$(inherited)",
457 | "-Wl",
458 | "-ld_classic",
459 | );
460 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
461 | SDKROOT = iphoneos;
462 | };
463 | name = Debug;
464 | };
465 | 83CBBA211A601CBA00E9B192 /* Release */ = {
466 | isa = XCBuildConfiguration;
467 | buildSettings = {
468 | ALWAYS_SEARCH_USER_PATHS = NO;
469 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
470 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
471 | CLANG_CXX_LIBRARY = "libc++";
472 | CLANG_ENABLE_MODULES = YES;
473 | CLANG_ENABLE_OBJC_ARC = YES;
474 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
475 | CLANG_WARN_BOOL_CONVERSION = YES;
476 | CLANG_WARN_COMMA = YES;
477 | CLANG_WARN_CONSTANT_CONVERSION = YES;
478 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
479 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
480 | CLANG_WARN_EMPTY_BODY = YES;
481 | CLANG_WARN_ENUM_CONVERSION = YES;
482 | CLANG_WARN_INFINITE_RECURSION = YES;
483 | CLANG_WARN_INT_CONVERSION = YES;
484 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
485 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
486 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
487 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
488 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
489 | CLANG_WARN_STRICT_PROTOTYPES = YES;
490 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
491 | CLANG_WARN_UNREACHABLE_CODE = YES;
492 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
493 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
494 | COPY_PHASE_STRIP = YES;
495 | ENABLE_NS_ASSERTIONS = NO;
496 | ENABLE_STRICT_OBJC_MSGSEND = YES;
497 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
498 | GCC_C_LANGUAGE_STANDARD = gnu99;
499 | GCC_NO_COMMON_BLOCKS = YES;
500 | GCC_PREPROCESSOR_DEFINITIONS = (
501 | "$(inherited)",
502 | _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
503 | );
504 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
505 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
506 | GCC_WARN_UNDECLARED_SELECTOR = YES;
507 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
508 | GCC_WARN_UNUSED_FUNCTION = YES;
509 | GCC_WARN_UNUSED_VARIABLE = YES;
510 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
511 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
512 | LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
513 | MTL_ENABLE_DEBUG_INFO = NO;
514 | OTHER_CFLAGS = "$(inherited)";
515 | OTHER_CPLUSPLUSFLAGS = "$(inherited)";
516 | OTHER_LDFLAGS = (
517 | "$(inherited)",
518 | "-Wl",
519 | "-ld_classic",
520 | );
521 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
522 | SDKROOT = iphoneos;
523 | VALIDATE_PRODUCT = YES;
524 | };
525 | name = Release;
526 | };
527 | /* End XCBuildConfiguration section */
528 |
529 | /* Begin XCConfigurationList section */
530 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "sweetsheetexample" */ = {
531 | isa = XCConfigurationList;
532 | buildConfigurations = (
533 | 13B07F941A680F5B00A75B9A /* Debug */,
534 | 13B07F951A680F5B00A75B9A /* Release */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | defaultConfigurationName = Release;
538 | };
539 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "sweetsheetexample" */ = {
540 | isa = XCConfigurationList;
541 | buildConfigurations = (
542 | 83CBBA201A601CBA00E9B192 /* Debug */,
543 | 83CBBA211A601CBA00E9B192 /* Release */,
544 | );
545 | defaultConfigurationIsVisible = 0;
546 | defaultConfigurationName = Release;
547 | };
548 | /* End XCConfigurationList section */
549 | };
550 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
551 | }
552 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample.xcodeproj/xcshareddata/xcschemes/sweetsheetexample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import
4 |
5 | @interface AppDelegate : EXAppDelegateWrapper
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/AppDelegate.mm:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 | #import
5 |
6 | @implementation AppDelegate
7 |
8 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
9 | {
10 | self.moduleName = @"main";
11 |
12 | // You can add your custom initial props in the dictionary below.
13 | // They will be passed down to the ViewController used by React Native.
14 | self.initialProps = @{};
15 |
16 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
17 | }
18 |
19 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
20 | {
21 | #if DEBUG
22 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"];
23 | #else
24 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
25 | #endif
26 | }
27 |
28 | // Linking API
29 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options {
30 | return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
31 | }
32 |
33 | // Universal Links
34 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler {
35 | BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
36 | return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result;
37 | }
38 |
39 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
40 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
41 | {
42 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
43 | }
44 |
45 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
46 | - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
47 | {
48 | return [super application:application didFailToRegisterForRemoteNotificationsWithError:error];
49 | }
50 |
51 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
52 | - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
53 | {
54 | return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
55 | }
56 |
57 | @end
58 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/ios/sweetsheetexample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "filename": "App-Icon-1024x1024@1x.png",
5 | "idiom": "universal",
6 | "platform": "ios",
7 | "size": "1024x1024"
8 | }
9 | ],
10 | "info": {
11 | "version": 1,
12 | "author": "expo"
13 | }
14 | }
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "expo"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/SplashScreen.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "idiom": "universal",
5 | "filename": "image.png",
6 | "scale": "1x"
7 | },
8 | {
9 | "idiom": "universal",
10 | "scale": "2x"
11 | },
12 | {
13 | "idiom": "universal",
14 | "scale": "3x"
15 | }
16 | ],
17 | "info": {
18 | "version": 1,
19 | "author": "expo"
20 | }
21 | }
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/SplashScreen.imageset/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/ios/sweetsheetexample/Images.xcassets/SplashScreen.imageset/image.png
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/SplashScreenBackground.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "idiom": "universal",
5 | "filename": "image.png",
6 | "scale": "1x"
7 | },
8 | {
9 | "idiom": "universal",
10 | "scale": "2x"
11 | },
12 | {
13 | "idiom": "universal",
14 | "scale": "3x"
15 | }
16 | ],
17 | "info": {
18 | "version": 1,
19 | "author": "expo"
20 | }
21 | }
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Images.xcassets/SplashScreenBackground.imageset/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/andrew-levy/sweet-sheet/26982f6d4d60a2e6caddef4efdeefc9fdd296c34/example/ios/sweetsheetexample/Images.xcassets/SplashScreenBackground.imageset/image.png
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CADisableMinimumFrameDurationOnPhone
6 |
7 | CFBundleDevelopmentRegion
8 | $(DEVELOPMENT_LANGUAGE)
9 | CFBundleDisplayName
10 | sweet-sheet-example
11 | CFBundleExecutable
12 | $(EXECUTABLE_NAME)
13 | CFBundleIdentifier
14 | $(PRODUCT_BUNDLE_IDENTIFIER)
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | $(PRODUCT_NAME)
19 | CFBundlePackageType
20 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
21 | CFBundleShortVersionString
22 | 1.0.0
23 | CFBundleSignature
24 | ????
25 | CFBundleURLTypes
26 |
27 |
28 | CFBundleURLSchemes
29 |
30 | expo.modules.sweetsheet.example
31 |
32 |
33 |
34 | CFBundleVersion
35 | 1
36 | LSRequiresIPhoneOS
37 |
38 | NSAppTransportSecurity
39 |
40 | NSAllowsArbitraryLoads
41 |
42 | NSExceptionDomains
43 |
44 | localhost
45 |
46 | NSExceptionAllowsInsecureHTTPLoads
47 |
48 |
49 |
50 |
51 | UILaunchStoryboardName
52 | SplashScreen
53 | UIRequiredDeviceCapabilities
54 |
55 | armv7
56 |
57 | UIRequiresFullScreen
58 |
59 | UIStatusBarStyle
60 | UIStatusBarStyleDefault
61 | UISupportedInterfaceOrientations
62 |
63 | UIInterfaceOrientationPortrait
64 | UIInterfaceOrientationPortraitUpsideDown
65 |
66 | UISupportedInterfaceOrientations~ipad
67 |
68 | UIInterfaceOrientationPortrait
69 | UIInterfaceOrientationPortraitUpsideDown
70 | UIInterfaceOrientationLandscapeLeft
71 | UIInterfaceOrientationLandscapeRight
72 |
73 | UIUserInterfaceStyle
74 | Light
75 | UIViewControllerBasedStatusBarAppearance
76 |
77 |
78 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/SplashScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/Supporting/Expo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | EXUpdatesCheckOnLaunch
6 | ALWAYS
7 | EXUpdatesEnabled
8 |
9 | EXUpdatesLaunchWaitMs
10 | 0
11 | EXUpdatesSDKVersion
12 | 49.0.0
13 |
14 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/main.m:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char * argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/noop-file.swift:
--------------------------------------------------------------------------------
1 | //
2 | // @generated
3 | // A blank Swift file must be created for native modules with Swift files to work correctly.
4 | //
5 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/sweetsheetexample-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | //
2 | // Use this file to import your target's public headers that you would like to expose to Swift.
3 | //
4 |
--------------------------------------------------------------------------------
/example/ios/sweetsheetexample/sweetsheetexample.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 |
8 |
--------------------------------------------------------------------------------
/example/metro.config.js:
--------------------------------------------------------------------------------
1 | // Learn more https://docs.expo.io/guides/customizing-metro
2 | const { getDefaultConfig } = require('expo/metro-config');
3 | const path = require('path');
4 |
5 | const config = getDefaultConfig(__dirname);
6 |
7 | // npm v7+ will install ../node_modules/react-native because of peerDependencies.
8 | // To prevent the incompatible react-native bewtween ./node_modules/react-native and ../node_modules/react-native,
9 | // excludes the one from the parent folder when bundling.
10 | config.resolver.blockList = [
11 | ...Array.from(config.resolver.blockList ?? []),
12 | new RegExp(path.resolve('..', 'node_modules', 'react-native')),
13 | ];
14 |
15 | config.resolver.nodeModulesPaths = [
16 | path.resolve(__dirname, './node_modules'),
17 | path.resolve(__dirname, '../node_modules'),
18 | ];
19 |
20 | config.watchFolders = [path.resolve(__dirname, '..')];
21 |
22 | config.transformer.getTransformOptions = async () => ({
23 | transform: {
24 | experimentalImportSupport: false,
25 | inlineRequires: true,
26 | },
27 | });
28 |
29 | module.exports = config;
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sweet-sheet-example",
3 | "version": "1.0.0",
4 | "main": "node_modules/expo/AppEntry.js",
5 | "scripts": {
6 | "start": "expo start",
7 | "android": "expo run:android",
8 | "ios": "expo run:ios",
9 | "web": "expo start --web"
10 | },
11 | "dependencies": {
12 | "expo": "~49.0.15",
13 | "react": "18.2.0",
14 | "react-native": "0.72.6",
15 | "expo-splash-screen": "~0.20.5",
16 | "expo-status-bar": "~1.6.0"
17 | },
18 | "devDependencies": {
19 | "@babel/core": "^7.20.0",
20 | "@types/react": "~18.2.14",
21 | "typescript": "^5.1.3"
22 | },
23 | "private": true,
24 | "expo": {
25 | "autolinking": {
26 | "nativeModulesDir": ".."
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/example/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "expo/tsconfig.base",
3 | "compilerOptions": {
4 | "strict": true,
5 | "paths": {
6 | "sweet-sheet": ["../src/index"],
7 | "sweet-sheet/*": ["../src/*"]
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/example/webpack.config.js:
--------------------------------------------------------------------------------
1 | const createConfigAsync = require('@expo/webpack-config');
2 | const path = require('path');
3 |
4 | module.exports = async (env, argv) => {
5 | const config = await createConfigAsync(
6 | {
7 | ...env,
8 | babel: {
9 | dangerouslyAddModulePathsToTranspile: ['sweet-sheet'],
10 | },
11 | },
12 | argv
13 | );
14 | config.resolve.modules = [
15 | path.resolve(__dirname, './node_modules'),
16 | path.resolve(__dirname, '../node_modules'),
17 | ];
18 |
19 | return config;
20 | };
21 |
--------------------------------------------------------------------------------
/expo-module.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "platforms": ["ios", "android", "web"],
3 | "ios": {
4 | "modules": ["SweetSheetModule"]
5 | },
6 | "android": {
7 | "modules": ["expo.modules.sweetsheet.SweetSheetModule"]
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ios/Array+PresentationDetents.swift:
--------------------------------------------------------------------------------
1 | import SwiftUI
2 |
3 | extension Array where Element == Any {
4 | @available(iOS 16.0, *)
5 | func toPresentationDetents() -> Set {
6 | var validDetents: Set = []
7 | for item in self {
8 | if let stringValue = item as? String {
9 | // Handle strings (e.g., "medium", "large")
10 | if stringValue == "medium" {
11 | validDetents.insert(PresentationDetent.medium)
12 | } else if stringValue == "large" {
13 | validDetents.insert(PresentationDetent.large)
14 | }
15 | } else if let dictionary = item as? [String: Any] {
16 | // Handle dictionaries with fraction or height values
17 | if let fraction = dictionary["fraction"] as? CGFloat {
18 | validDetents.insert(PresentationDetent.fraction(fraction))
19 | } else if let height = dictionary["height"] as? CGFloat {
20 | validDetents.insert(PresentationDetent.height(height))
21 | }
22 | }
23 | }
24 | return validDetents
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ios/SweetSheet.podspec:
--------------------------------------------------------------------------------
1 | require 'json'
2 |
3 | package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
4 |
5 | Pod::Spec.new do |s|
6 | s.name = 'SweetSheet'
7 | s.version = package['version']
8 | s.summary = package['description']
9 | s.description = package['description']
10 | s.license = package['license']
11 | s.author = package['author']
12 | s.homepage = package['homepage']
13 | s.platform = :ios, '13.0'
14 | s.swift_version = '5.4'
15 | s.source = { git: 'https://github.com/andrew-levy/sweet-sheet' }
16 | s.static_framework = true
17 |
18 | s.dependency 'ExpoModulesCore'
19 |
20 | # Swift/Objective-C compatibility
21 | s.pod_target_xcconfig = {
22 | 'DEFINES_MODULE' => 'YES',
23 | 'SWIFT_COMPILATION_MODE' => 'wholemodule'
24 | }
25 |
26 | s.source_files = "**/*.{h,m,swift}"
27 | end
28 |
--------------------------------------------------------------------------------
/ios/SweetSheetExpoView.swift:
--------------------------------------------------------------------------------
1 | import ExpoModulesCore
2 | import SwiftUI
3 |
4 | class SweetSheetView: ExpoView {
5 | let props: Props
6 | let onDismiss = EventDispatcher()
7 | private var touchHandler: RCTTouchHandler?
8 |
9 | override func insertReactSubview(_ subview: UIView!, at atIndex: Int) {
10 | self.touchHandler?.attach(to: subview)
11 | props.children = subview
12 | }
13 |
14 | required init(appContext: AppContext? = nil) {
15 | props = Props(onDismiss: onDismiss)
16 | let hostingController = UIHostingController(rootView: SweetSheetSwiftUIView(props: props))
17 | super.init(appContext: appContext)
18 | self.touchHandler = RCTTouchHandler(bridge: appContext?.reactBridge)
19 | addSubview(hostingController.view)
20 | }
21 |
22 |
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/ios/SweetSheetModifiers.swift:
--------------------------------------------------------------------------------
1 | import SwiftUI
2 |
3 | extension View {
4 | func sheetDetents(_ detents: [Any]) -> some View {
5 | modifier(DetentsModifier(detents: detents))
6 | }
7 | func hideDragIndicator(_ hideDragIndicator: Bool) -> some View {
8 | modifier(DragIndicatorModifier(hideDragIndicator: hideDragIndicator))
9 | }
10 | func sheetCornerRadius(_ cornerRadius: CGFloat?) -> some View {
11 | modifier(CornerRadiusModifier(cornerRadius: cornerRadius))
12 | }
13 | }
14 |
15 | struct DetentsModifier: ViewModifier {
16 | var detents: [Any]
17 | func body(content: Content) -> some View {
18 | if #available(iOS 16.0, *) {
19 | return AnyView(content.presentationDetents(detents.toPresentationDetents()))
20 | } else {
21 | return AnyView(content)
22 | }
23 | }
24 | }
25 |
26 | struct DragIndicatorModifier: ViewModifier {
27 | var hideDragIndicator: Bool
28 | func body(content: Content) -> some View {
29 | if #available(iOS 16.0, *) {
30 | return AnyView(content.presentationDragIndicator(hideDragIndicator ? .hidden : .visible))
31 | } else {
32 | return AnyView(content)
33 | }
34 | }
35 | }
36 |
37 | struct CornerRadiusModifier: ViewModifier {
38 | var cornerRadius: CGFloat?
39 | func body(content: Content) -> some View {
40 | if cornerRadius == nil {
41 | return AnyView(content)
42 | }
43 | if #available(iOS 16.4, *) {
44 | return AnyView(content.presentationCornerRadius(cornerRadius))
45 | } else {
46 | return AnyView(content)
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/ios/SweetSheetModule.swift:
--------------------------------------------------------------------------------
1 | import ExpoModulesCore
2 | import SwiftUI
3 |
4 | public class SweetSheetModule: Module {
5 | public func definition() -> ModuleDefinition {
6 | Name("SweetSheet")
7 | View(SweetSheetView.self) {
8 | Events("onDismiss")
9 | Prop("isPresented") { (view: SweetSheetView, isPresented: Bool?) in
10 | view.props.isPresented = isPresented ?? false
11 | }
12 | Prop("detents") {(view: SweetSheetView, detents: [Any]?) in
13 | view.props.detents = detents ?? []
14 | }
15 | Prop("hideDragIndicator") {(view: SweetSheetView, hideDragIndicator: Bool?) in
16 | view.props.hideDragIndicator = hideDragIndicator ?? false
17 | }
18 | Prop("cornerRadius") {(view: SweetSheetView, cornerRadius: Double?) in
19 | view.props.cornerRadius = cornerRadius.map { CGFloat($0) }
20 | }
21 | }
22 | }
23 | }
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ios/SweetSheetView.swift:
--------------------------------------------------------------------------------
1 | import ExpoModulesCore
2 | import SwiftUI
3 |
4 | class Props: ObservableObject {
5 | @Published var isPresented: Bool = false
6 | @Published var hideDragIndicator: Bool = false
7 | @Published var detents: [Any] = []
8 | @Published var cornerRadius: CGFloat? = nil
9 | @Published var children: UIView?
10 | @Published var onDismiss: EventDispatcher
11 |
12 | init(onDismiss: EventDispatcher) {
13 | self.onDismiss = onDismiss
14 | }
15 | }
16 |
17 | struct SweetSheetSwiftUIView: View {
18 | @ObservedObject var props: Props
19 |
20 | var body: some View {
21 | EmptyView()
22 | .sheet(isPresented: $props.isPresented, onDismiss: {
23 | props.onDismiss()
24 | }) {
25 | RepresentableView(view: props.children)
26 | .sheetDetents(props.detents)
27 | .hideDragIndicator(props.hideDragIndicator)
28 | .sheetCornerRadius(props.cornerRadius)
29 | }
30 | }
31 | }
32 |
33 | struct RepresentableView: UIViewRepresentable {
34 | var view: UIView?
35 | func makeUIView(context: Context) -> UIView {
36 | return view ?? UIView()
37 | }
38 | func updateUIView(_ uiView: UIView, context: Context) {}
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sweet-sheet",
3 | "version": "0.1.0",
4 | "description": "A native Sheet component built with Expo's Module API",
5 | "main": "build/index.js",
6 | "types": "build/index.d.ts",
7 | "scripts": {
8 | "build": "expo-module build",
9 | "clean": "expo-module clean",
10 | "lint": "expo-module lint",
11 | "test": "expo-module test",
12 | "prepare": "expo-module prepare",
13 | "prepublishOnly": "expo-module prepublishOnly",
14 | "expo-module": "expo-module",
15 | "open:ios": "open -a \"Xcode\" example/ios",
16 | "open:android": "open -a \"Android Studio\" example/android"
17 | },
18 | "keywords": [
19 | "react-native",
20 | "expo",
21 | "sweet-sheet",
22 | "SweetSheet"
23 | ],
24 | "repository": "https://github.com/andrew-levy/sweet-sheet",
25 | "bugs": {
26 | "url": "https://github.com/andrew-levy/sweet-sheet/issues"
27 | },
28 | "author": "Andrew (https://github.com/andrew-levy)",
29 | "license": "MIT",
30 | "homepage": "https://github.com/andrew-levy/sweet-sheet#readme",
31 | "dependencies": {
32 | "@expo/config-plugins": "~7.2.2"
33 | },
34 | "devDependencies": {
35 | "@types/react": "^18.0.25",
36 | "expo-module-scripts": "^3.0.11",
37 | "expo-modules-core": "^1.5.11"
38 | },
39 | "peerDependencies": {
40 | "expo": "*",
41 | "react": "*",
42 | "react-native": "*"
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/SweetSheet.types.ts:
--------------------------------------------------------------------------------
1 | import { ViewProps } from "react-native";
2 |
3 | export type SweetSheetViewProps = {
4 | isPresented: boolean;
5 | detents?: ("medium" | "large" | { fraction: number } | { height: number })[];
6 | hideDragIndicator?: boolean;
7 | cornerRadius?: number;
8 | onDismiss?: () => void;
9 | children?: React.ReactElement | React.ReactElement[];
10 | } & ViewProps;
11 |
12 |
--------------------------------------------------------------------------------
/src/SweetSheetView.tsx:
--------------------------------------------------------------------------------
1 | import { requireNativeViewManager } from "expo-modules-core";
2 | import * as React from "react";
3 | import { SweetSheetViewProps } from "./SweetSheet.types";
4 |
5 | const NativeView: React.ComponentType =
6 | requireNativeViewManager("SweetSheet");
7 |
8 | export default function SweetSheetView(props: SweetSheetViewProps) {
9 | const { children, ...restProps } = props;
10 | return (
11 |
18 | {children}
19 |
20 | );
21 | }
22 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export { default } from "./SweetSheetView";
2 |
--------------------------------------------------------------------------------
/src/plugin/withCompose.ts:
--------------------------------------------------------------------------------
1 | import { ConfigPlugin, withProjectBuildGradle } from '@expo/config-plugins';
2 | import { mergeContents } from '@expo/config-plugins/build/utils/generateCode';
3 |
4 | const withCompose: ConfigPlugin = config => {
5 | return withProjectBuildGradle(config, config => {
6 | if (config.modResults.language === 'groovy') {
7 | console.log('Adding kotlin-gradle-plugin dependency')
8 | config.modResults.contents = mergeBuildGradle(config.modResults.contents)
9 | } else {
10 | throw new Error('Cannot add orientation maven gradle because the build.gradle is not groovy')
11 | }
12 | return config
13 | })
14 | };
15 |
16 | const mergeBuildGradle = (contents: string) => {
17 | const dependency = [` classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"`]
18 | return mergeContents({
19 | src: contents,
20 | newSrc: dependency.join('\n'),
21 | tag: 'kotlin-gradle-plugin-dependency',
22 | comment: '//',
23 | anchor: /dependencies\s?{/,
24 | offset: 1
25 | }).contents
26 | }
27 |
28 | export default withCompose
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | // @generated by expo-module-scripts
2 | {
3 | "extends": "expo-module-scripts/tsconfig.base",
4 | "compilerOptions": {
5 | "outDir": "./build",
6 | "module": "commonjs"
7 | },
8 | "include": ["./src"],
9 | "exclude": ["**/__mocks__/*", "**/__tests__/*"]
10 | }
11 |
--------------------------------------------------------------------------------