@rn-tools/navigation 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -544,13 +544,13 @@ import * as Linking from "expo-linking";
544
544
  import * as React from "react";
545
545
  import { View, Text, TouchableOpacity } from "react-native";
546
546
 
547
- export function DeepLinksExample() {
547
+ export default function DeepLinksExample() {
548
548
  // You'll likely want to use Expo's Linking API to get the current URL and path
549
549
  // let url = Linking.useURL()
550
550
  // let { path } = Linking.parse(url)
551
551
 
552
552
  // But it's easier to test hardcoded strings for the sake of this example
553
- let path = "/testing/home/item/1";
553
+ let path = "/testing/home/item/2";
554
554
 
555
555
  return (
556
556
  <Stack.Navigator
@@ -665,7 +665,14 @@ function MyScreen({
665
665
  }) {
666
666
  return (
667
667
  <View style={{ flex: 1, backgroundColor: bg }}>
668
- <View className="flex-1 items-center justify-center gap-4">
668
+ <View
669
+ style={{
670
+ flex: 1,
671
+ justifyContent: "center",
672
+ alignItems: "center",
673
+ gap: 4,
674
+ }}
675
+ >
669
676
  <Text style={{ fontSize: 26, fontWeight: "semibold" }}>{title}</Text>
670
677
 
671
678
  {!isRoot && (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rn-tools/navigation",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "main": "./src/index.ts",
5
5
  "license": "MIT",
6
6
  "files": [
package/src/utils.ts CHANGED
@@ -34,7 +34,7 @@ export function useSafeAreaInsetsSafe() {
34
34
  // eslint-disable-next-line
35
35
  insets = useSafeAreaInsets();
36
36
  } catch (error) {
37
- console.log("useSafeAreaInsets is not available");
37
+ console.warn("`react-native-safe-area-context` missing - Please install and wrap your app in a SafeAreaProvider" );
38
38
  }
39
39
 
40
40
  return insets;