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
190 changes: 172 additions & 18 deletions example/bare/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PODS:
- hermes-engine (0.14.0):
- hermes-engine/Pre-built (= 0.14.0)
- hermes-engine/Pre-built (0.14.0)
- LuggMaps (1.0.0-beta.4):
- LuggMaps (1.0.0-beta.6):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -1954,6 +1954,93 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- react-native-safe-area-context (5.7.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- react-native-safe-area-context/common (= 5.7.0)
- react-native-safe-area-context/fabric (= 5.7.0)
- React-NativeModulesApple
- React-RCTFabric
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- react-native-safe-area-context/common (5.7.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- React-NativeModulesApple
- React-RCTFabric
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- react-native-safe-area-context/fabric (5.7.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- react-native-safe-area-context/common
- React-NativeModulesApple
- React-RCTFabric
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- React-NativeModulesApple (0.83.0):
- boost
- DoubleConversion
Expand Down Expand Up @@ -2511,7 +2598,7 @@ PODS:
- React-perflogger (= 0.83.0)
- React-utils (= 0.83.0)
- SocketRocket
- RNReanimated (4.2.1):
- RNReanimated (4.3.0):
- boost
- DoubleConversion
- fast_float
Expand All @@ -2538,11 +2625,12 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated (= 4.2.1)
- RNReanimated/apple (= 4.3.0)
- RNReanimated/common (= 4.3.0)
- RNWorklets
- SocketRocket
- Yoga
- RNReanimated/reanimated (4.2.1):
- RNReanimated/apple (4.3.0):
- boost
- DoubleConversion
- fast_float
Expand All @@ -2569,11 +2657,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNReanimated/reanimated/apple (= 4.2.1)
- RNWorklets
- SocketRocket
- Yoga
- RNReanimated/reanimated/apple (4.2.1):
- RNReanimated/common (4.3.0):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -2603,7 +2690,66 @@ PODS:
- RNWorklets
- SocketRocket
- Yoga
- RNSVG (15.15.2):
- RNScreens (4.24.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- React-NativeModulesApple
- React-RCTFabric
- React-RCTImage
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNScreens/common (= 4.24.0)
- SocketRocket
- Yoga
- RNScreens/common (4.24.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- React-NativeModulesApple
- React-RCTFabric
- React-RCTImage
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- RNSVG (15.15.4):
- boost
- DoubleConversion
- fast_float
Expand All @@ -2629,10 +2775,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNSVG/common (= 15.15.2)
- RNSVG/common (= 15.15.4)
- SocketRocket
- Yoga
- RNSVG/common (15.15.2):
- RNSVG/common (15.15.4):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -2688,7 +2834,7 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- RNWorklets (0.7.2):
- RNWorklets (0.8.1):
- boost
- DoubleConversion
- fast_float
Expand All @@ -2715,10 +2861,11 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNWorklets/worklets (= 0.7.2)
- RNWorklets/apple (= 0.8.1)
- RNWorklets/common (= 0.8.1)
- SocketRocket
- Yoga
- RNWorklets/worklets (0.7.2):
- RNWorklets/apple (0.8.1):
- boost
- DoubleConversion
- fast_float
Expand All @@ -2745,10 +2892,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNWorklets/worklets/apple (= 0.7.2)
- SocketRocket
- Yoga
- RNWorklets/worklets/apple (0.7.2):
- RNWorklets/common (0.8.1):
- boost
- DoubleConversion
- fast_float
Expand Down Expand Up @@ -2827,6 +2973,7 @@ DEPENDENCIES:
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
- react-native-config (from `../node_modules/react-native-config`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
- React-networking (from `../node_modules/react-native/ReactCommon/react/networking`)
- React-oscompat (from `../node_modules/react-native/ReactCommon/oscompat`)
Expand Down Expand Up @@ -2861,6 +3008,7 @@ DEPENDENCIES:
- ReactCodegen (from `build/generated/ios/ReactCodegen`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
- "RNTrueSheet (from `../node_modules/@lodev09/react-native-true-sheet`)"
- RNWorklets (from `../node_modules/react-native-worklets`)
Expand Down Expand Up @@ -2964,6 +3112,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
react-native-config:
:path: "../node_modules/react-native-config"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
React-NativeModulesApple:
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
React-networking:
Expand Down Expand Up @@ -3032,6 +3182,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
:path: "../node_modules/react-native-screens"
RNSVG:
:path: "../node_modules/react-native-svg"
RNTrueSheet:
Expand All @@ -3050,7 +3202,7 @@ SPEC CHECKSUMS:
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
GoogleMaps: 0608099d4870cac8754bdba9b6953db543432438
hermes-engine: 3515eff1a2de44b79dfa94a03d1adeed40f0dafe
LuggMaps: 90c663df4c6f86f47bd2dac5caede4d2765bb2a1
LuggMaps: ae94261b276434379240235ff85192dcc541d66c
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
RCTDeprecation: 2b70c6e3abe00396cefd8913efbf6a2db01a2b36
RCTRequired: f3540eee8094231581d40c5c6d41b0f170237a81
Expand Down Expand Up @@ -3088,6 +3240,7 @@ SPEC CHECKSUMS:
React-Mapbuffer: 20046c0447efaa7aace0b76085aa9bb35b0e8105
React-microtasksnativemodule: 0e837de56519c92d8a2e3097717df9497feb33cb
react-native-config: 2249b7e68644c86ea68358f5a0d746d1c648f900
react-native-safe-area-context: befb5404eb8a16fdc07fa2bebab3568ecabcbb8a
React-NativeModulesApple: 1a378198515f8e825c5931a7613e98da69320cee
React-networking: bfd1695ada5a57023006ce05823ac5391c3ce072
React-oscompat: aedc0afbded67280de6bb6bfac8cfde0389e2b33
Expand Down Expand Up @@ -3121,10 +3274,11 @@ SPEC CHECKSUMS:
ReactAppDependencyProvider: ebcf3a78dc1bcdf054c9e8d309244bade6b31568
ReactCodegen: 11c08ff43a62009d48c71de000352e4515918801
ReactCommon: 424cc34cf5055d69a3dcf02f3436481afb8b0f6f
RNReanimated: 292cd58688552a22b3fc1cefcfbc49b336dfed68
RNSVG: a4ea97e14b7a2221d85091a6b3128f807445a7ec
RNReanimated: 4e6187f2ba1e30e6ddc7c8fc9f19b2dd2b6b2532
RNScreens: 7f643ee0fd1407dc5085c7795460bd93da113b8f
RNSVG: 3405336c4507ee0bafb02b08058d57216daa2c50
RNTrueSheet: 787fa8837764eb7370ce306cd2a24a6e19e0e74c
RNWorklets: 01efdd402d236a13651ea5ea5437ca85a44e7afa
RNWorklets: 6daa3975bebe6047822c7485666d501a716674ca
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 6ca93c8c13f56baeec55eb608577619b17a4d64e

Expand Down
6 changes: 5 additions & 1 deletion example/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"@lodev09/react-native-true-sheet": "3.9.0-beta.0",
"@lugg/maps": "workspace:*",
"@lugg/shared-example": "workspace:*",
"@react-navigation/native": "^7.2.1",
"@react-navigation/native-stack": "^7.14.9",
"react": "19.2.0",
"react-native": "0.83.0",
"react-native-config": "^1.6.1",
"react-native-reanimated": "4",
"react-native-safe-area-context": "^5.7.0",
"react-native-screens": "^4.24.0",
"react-native-svg": "^15.15.1",
"react-native-worklets": "^0.7.2"
"react-native-worklets": "^0.8.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand Down
47 changes: 45 additions & 2 deletions example/bare/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
import { Home } from '@lugg/shared-example';
import { useCallback } from 'react';
import { useColorScheme } from 'react-native';
import { NavigationContainer, DarkTheme, DefaultTheme } from '@react-navigation/native';
import {
createNativeStackNavigator,
type NativeStackScreenProps,
} from '@react-navigation/native-stack';
import type { MarkerPressEvent } from '@lugg/maps';
import { HomeScreen, type MarkerData } from '@lugg/shared-example';

import { DetailScreen } from './screens/DetailScreen';

export type RootStackParamList = {
Home: undefined;
Detail: { name: string };
};

const Stack = createNativeStackNavigator<RootStackParamList>();

type HomeProps = NativeStackScreenProps<RootStackParamList, 'Home'>;

function Home({ navigation }: HomeProps) {
const handleMarkerPress = useCallback(
(_e: MarkerPressEvent, marker: MarkerData) => {
navigation.navigate('Detail', { name: marker.name });
},
[navigation]
);

return <HomeScreen onMarkerPress={handleMarkerPress} />;
}

export default function App() {
return <Home />;
const scheme = useColorScheme();

return (
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={{ headerShown: false }}
/>
<Stack.Screen name="Detail" component={DetailScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
Loading
Loading