Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="nayan"/>
<data android:scheme="nayan.example"/>
</intent-filter>
</activity>
Expand Down
4 changes: 3 additions & 1 deletion example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"scheme": "nayan",
"splash": {
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
Expand All @@ -26,6 +27,7 @@
"web": {
"bundler": "metro",
"favicon": "./assets/favicon.png"
}
},
"plugins": ["expo-router"]
}
}
8 changes: 0 additions & 8 deletions example/index.js

This file was deleted.

65 changes: 63 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- boost (1.84.0)
- DoubleConversion (1.1.6)
- EXConstants (17.0.7):
- EXConstants (17.0.8):
- ExpoModulesCore
- Expo (52.0.37):
- ExpoModulesCore
Expand All @@ -11,8 +11,12 @@ PODS:
- ExpoModulesCore
- ExpoFont (13.0.4):
- ExpoModulesCore
- ExpoHead (4.0.19):
- ExpoModulesCore
- ExpoKeepAwake (14.0.3):
- ExpoModulesCore
- ExpoLinking (7.0.5):
- ExpoModulesCore
- ExpoModulesCore (2.2.2):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1773,6 +1777,51 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNScreens (4.10.0):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-RCTImage
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNScreens/common (= 4.10.0)
- Yoga
- RNScreens/common (4.10.0):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-RCTImage
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- SocketRocket (0.7.1)
- Yoga (0.0.0)

Expand All @@ -1784,7 +1833,9 @@ DEPENDENCIES:
- ExpoAsset (from `../node_modules/expo-asset/ios`)
- ExpoFileSystem (from `../node_modules/expo-file-system/ios`)
- ExpoFont (from `../node_modules/expo-font/ios`)
- ExpoHead (from `../node_modules/expo-router/ios`)
- ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
- ExpoLinking (from `../node_modules/expo-linking/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- ExpoSystemUI (from `../node_modules/expo-system-ui/ios`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
Expand Down Expand Up @@ -1853,6 +1904,7 @@ DEPENDENCIES:
- "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand All @@ -1874,8 +1926,12 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-file-system/ios"
ExpoFont:
:path: "../node_modules/expo-font/ios"
ExpoHead:
:path: "../node_modules/expo-router/ios"
ExpoKeepAwake:
:path: "../node_modules/expo-keep-awake/ios"
ExpoLinking:
:path: "../node_modules/expo-linking/ios"
ExpoModulesCore:
:path: "../node_modules/expo-modules-core"
ExpoSystemUI:
Expand Down Expand Up @@ -2009,18 +2065,22 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-gesture-handler"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
:path: "../node_modules/react-native-screens"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
EXConstants: 30c43b9ca8391c31bab9cc45c97f16eddcf11042
EXConstants: fcfc75800824ac2d5c592b5bc74130bad17b146b
Expo: 63515728b6f238842dc95702eb0fb385f00d7c5a
ExpoAsset: 4033893dfb333b444bf45e951351254137b658d5
ExpoFileSystem: 2d804c73034c0d65eb2a640e0a77627033b69edc
ExpoFont: f354e926f8feae5e831ec8087f36652b44a0b188
ExpoHead: caaccab2474a1b1f3be62eb1d493f9d30c704f94
ExpoKeepAwake: b0171a73665bfcefcfcc311742a72a956e6aa680
ExpoLinking: 8d12bee174ba0cdf31239706578e29e74a417402
ExpoModulesCore: 7f5e59799b89e5fad1d7cc6070744c1003ca320f
ExpoSystemUI: 2e5356d22b077c56c132b4dcbc5d69dd667b1f8c
FBLazyVector: ca8044c9df513671c85167838b4188791b6f37e1
Expand Down Expand Up @@ -2087,6 +2147,7 @@ SPEC CHECKSUMS:
RNDateTimePicker: cfde47eb14e5ee6b9744f2764bcd1085e6590d9b
RNGestureHandler: 6aedf747478f64fbeddb3ad5d5d0dfdf2361d136
RNReanimated: d3b6cc70edd33d2d204c6fed3b8d16c6bf6a091c
RNScreens: ba2dcf7048b83669003a28fa95309b965b52af0f
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 90d80701b27946c4b23461c00a7207f300a6ff71

Expand Down
28 changes: 14 additions & 14 deletions example/ios/example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
88D75F739EDD1BBE64E82A84 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 69C37EC74BEFC79B8DDE7FC5 /* PrivacyInfo.xcprivacy */; };
93BC867291D04C1788B45C78 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 411D71150CFA4BD6A9112F5E /* noop-file.swift */; };
96905EF65AED1B983A6B3ABC /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-example.a */; };
A05EECF265244DD1B11528D7 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38CA346EC4DE4DFFB752EBD4 /* noop-file.swift */; };
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
C124F89EB7DFA6B0EE8DFEA5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = A8A8D96D118EBC7283DA8792 /* PrivacyInfo.xcprivacy */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -25,14 +25,14 @@
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = "<group>"; };
411D71150CFA4BD6A9112F5E /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "example/noop-file.swift"; sourceTree = "<group>"; };
38CA346EC4DE4DFFB752EBD4 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "example/noop-file.swift"; sourceTree = "<group>"; };
58EEBF8E8E6FB1BC6CAF49B5 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
69C37EC74BEFC79B8DDE7FC5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = example/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
6C2E3173556A471DD304B334 /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = "<group>"; };
7A4D352CD337FB3A3BF06240 /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = "<group>"; };
A8A8D96D118EBC7283DA8792 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = example/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = example/SplashScreen.storyboard; sourceTree = "<group>"; };
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
D9C43FB7E6674BD98AE7394A /* example-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "example-Bridging-Header.h"; path = "example/example-Bridging-Header.h"; sourceTree = "<group>"; };
C15585DFB6754200A3A826B6 /* example-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "example-Bridging-Header.h"; path = "example/example-Bridging-Header.h"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-example/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -59,9 +59,9 @@
13B07FB61A68108700A75B9A /* Info.plist */,
13B07FB71A68108700A75B9A /* main.m */,
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
411D71150CFA4BD6A9112F5E /* noop-file.swift */,
D9C43FB7E6674BD98AE7394A /* example-Bridging-Header.h */,
69C37EC74BEFC79B8DDE7FC5 /* PrivacyInfo.xcprivacy */,
38CA346EC4DE4DFFB752EBD4 /* noop-file.swift */,
C15585DFB6754200A3A826B6 /* example-Bridging-Header.h */,
A8A8D96D118EBC7283DA8792 /* PrivacyInfo.xcprivacy */,
);
name = example;
sourceTree = "<group>";
Expand Down Expand Up @@ -147,13 +147,13 @@
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */;
buildPhases = (
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
0F94A3D5022C5707302A1003 /* [Expo] Configure project */,
2CFF53F392873371D02B10A9 /* [Expo] Configure project */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
C1F91287EB4438B987B66503 /* [CP] Embed Pods Frameworks */,
ECBBE9DF7889F077D3178C5C /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -203,7 +203,7 @@
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
88D75F739EDD1BBE64E82A84 /* PrivacyInfo.xcprivacy in Resources */,
C124F89EB7DFA6B0EE8DFEA5 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -247,7 +247,7 @@
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";
showEnvVarsInLog = 0;
};
0F94A3D5022C5707302A1003 /* [Expo] Configure project */ = {
2CFF53F392873371D02B10A9 /* [Expo] Configure project */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -300,7 +300,7 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n";
showEnvVarsInLog = 0;
};
C1F91287EB4438B987B66503 /* [CP] Embed Pods Frameworks */ = {
ECBBE9DF7889F077D3178C5C /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -328,7 +328,7 @@
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
13B07FC11A68108700A75B9A /* main.m in Sources */,
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
93BC867291D04C1788B45C78 /* noop-file.swift in Sources */,
A05EECF265244DD1B11528D7 /* noop-file.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
5 changes: 5 additions & 0 deletions example/ios/example/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>nayan</string>
<string>nayan.example</string>
</array>
</dict>
Expand All @@ -44,6 +45,10 @@
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>NSUserActivityTypes</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route</string>
</array>
<key>UILaunchStoryboardName</key>
<string>SplashScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
8 changes: 7 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-nayan-example",
"version": "1.0.0",
"main": "index.js",
"main": "expo-router/entry",
"scripts": {
"start": "expo start -c",
"prebuild": "expo prebuild --clean",
Expand All @@ -11,9 +11,14 @@
},
"dependencies": {
"@expo/metro-runtime": "~4.0.1",
"@expo/vector-icons": "^14.0.4",
"@react-native-community/datetimepicker": "^8.3.0",
"expo": "~52.0.35",
"expo-constants": "^17.0.8",
"expo-linking": "^7.0.5",
"expo-navigation-bar": "^4.0.8",
"expo-router": "^4.0.19",
"expo-status-bar": "^2.0.1",
"expo-system-ui": "^4.0.8",
"nativewind": "^4.1.23",
"react": "18.3.1",
Expand All @@ -22,6 +27,7 @@
"react-native-gesture-handler": "^2.24.0",
"react-native-reanimated": "^3.16.1",
"react-native-safe-area-context": "^4.12.0",
"react-native-screens": "^4.10.0",
"react-native-web": "~0.19.13"
},
"devDependencies": {
Expand Down
21 changes: 0 additions & 21 deletions example/src/App.tsx

This file was deleted.

20 changes: 20 additions & 0 deletions example/src/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import '../../global.css';
import 'react-native-reanimated';
import { Stack } from 'expo-router';
import { NTheme, useColorScheme, THEMES } from 'react-native-nayan';
import { components, themeColors } from '../constants';

const RootLayout = () => {
const {colorScheme } = useColorScheme();

return (
<NTheme theme={colorScheme || THEMES.light} themeColors={themeColors}>
<Stack>
<Stack.Screen name="index" options={{ title: 'React Native Nayan' }} />
{components.map((component: any) => <Stack.Screen key={component.name} name={component.name} options={{ title: component.title }} />)}
</Stack>
</NTheme>
);
}

export default RootLayout;
17 changes: 17 additions & 0 deletions example/src/app/accordion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {View} from 'react-native';
import { NAccordion } from 'react-native-nayan';

const Component = () => {
const items = [
{title: 'How does the video creation process work on Inyter.com?', description: 'Inyter.com simplifies the video creation process. You start by choosing a template that fits your occasion, then customize it by adding your photos, videos, and personalized messages. Once you\'re happy with the design, Inyter generates the video and allows you to send it directly to your loved ones via platforms like WhatsApp, or save it for future use.'},
{title: 'Why does Inyter.com charge money?', description: 'Inyter.com is free to use with minor limitations, allowing you to create personalized video invitations and wishes at no cost. However, we charge a nominal fee for HD content because generating high-quality videos requires powerful servers and significant resources. Video generation is a costly process that involves heavy server usage, and these fees help us maintain the quality and performance of the platform while ensuring smooth and reliable service for all users.'}
];

return (
<View className="flex-1 p-3">
<NAccordion items={items} className="" itemClassName="border border-border rounded bg-card mb-3" titleClassName="text-text" descriptionClassName="text-muted" />
</View>
)
};

export default Component;
Loading
Loading