@expo/ui 1.0.0-canary-20250304-f08e984 → 1.0.0-canary-20250305-0af9ad2

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/CHANGELOG.md CHANGED
@@ -22,6 +22,7 @@
22
22
 
23
23
  ### 💡 Others
24
24
 
25
+ - Drop section polyfill for Android ([#35305](https://github.com/expo/expo/pull/35305) by [@aleqsio](https://github.com/aleqsio))
25
26
  - Standardize platform key ordering in `expo-module.config.json`. ([#35003](https://github.com/expo/expo/pull/35003) by [@reichhartd](https://github.com/reichhartd))
26
27
 
27
28
  ## 0.0.2 — 2025-02-11
@@ -1,12 +1,8 @@
1
- import * as React from 'react';
2
1
  import { StyleProp, ViewStyle } from 'react-native';
3
2
  export type SectionProps = {
4
3
  style?: StyleProp<ViewStyle>;
5
4
  title: string;
6
5
  children: any;
7
6
  };
8
- export declare function Section({ title, children }: {
9
- title: string;
10
- children: React.ReactNode;
11
- }): React.JSX.Element;
7
+ export declare function Section({ children }: SectionProps): any;
12
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAkBF,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBA8BxF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,OAEjD"}
@@ -1,8 +1,3 @@
1
- import { StyleProp, ViewStyle } from 'react-native';
2
- export type SectionProps = {
3
- title: string;
4
- style?: StyleProp<ViewStyle>;
5
- children: React.ReactNode;
6
- };
1
+ import { SectionProps } from '.';
7
2
  export declare function Section(props: SectionProps): import("react").JSX.Element;
8
3
  //# sourceMappingURL=index.ios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../components/Section/index.ios.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAOF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
1
+ {"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../components/Section/index.ios.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAOjC,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
@@ -1,11 +1,6 @@
1
1
  import { requireNativeView } from 'expo';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
2
 
4
- export type SectionProps = {
5
- title: string;
6
- style?: StyleProp<ViewStyle>;
7
- children: React.ReactNode;
8
- };
3
+ import { SectionProps } from '.';
9
4
 
10
5
  const SectionNativeView: React.ComponentType<SectionProps> = requireNativeView(
11
6
  'ExpoUI',
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
- import { StyleProp, StyleSheet, Text, View, ViewStyle } from 'react-native';
1
+ import { StyleProp, ViewStyle } from 'react-native';
3
2
 
4
3
  export type SectionProps = {
5
4
  style?: StyleProp<ViewStyle>;
@@ -7,50 +6,6 @@ export type SectionProps = {
7
6
  children: any;
8
7
  };
9
8
 
10
- function OutlinedCard(props: { children: React.ReactNode }) {
11
- return (
12
- <View
13
- style={{
14
- borderRadius: 12,
15
- margin: 12,
16
- paddingVertical: 24,
17
- borderColor: '#CAC4D0',
18
- backgroundColor: '#F7F2FA',
19
- borderWidth: 1,
20
- }}>
21
- {props.children}
22
- </View>
23
- );
24
- }
25
-
26
- export function Section({ title, children }: { title: string; children: React.ReactNode }) {
27
- return (
28
- <OutlinedCard>
29
- <Text style={{ fontSize: 30, fontWeight: 'bold', paddingHorizontal: 20 }}>{title}</Text>
30
-
31
- {React.Children.map(children, (c, idx) => (
32
- <>
33
- <View
34
- key={idx}
35
- style={{
36
- minHeight: 50,
37
- paddingHorizontal: 20,
38
- justifyContent: 'center',
39
- }}>
40
- {c}
41
- </View>
42
- {idx !== React.Children.count(children) - 1 && (
43
- <View
44
- key={'separator' + idx}
45
- style={{
46
- height: StyleSheet.hairlineWidth,
47
- backgroundColor: 'lightgray',
48
- marginHorizontal: 20,
49
- }}
50
- />
51
- )}
52
- </>
53
- ))}
54
- </OutlinedCard>
55
- );
9
+ export function Section({ children }: SectionProps) {
10
+ return children;
56
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/ui",
3
- "version": "1.0.0-canary-20250304-f08e984",
3
+ "version": "1.0.0-canary-20250305-0af9ad2",
4
4
  "description": "A collection of UI components",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -29,12 +29,12 @@
29
29
  "dependencies": {},
30
30
  "devDependencies": {
31
31
  "@types/react": "~19.0.10",
32
- "expo-module-scripts": "4.0.5-canary-20250304-f08e984"
32
+ "expo-module-scripts": "4.0.5-canary-20250305-0af9ad2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "expo": "*",
36
36
  "react": "*",
37
37
  "react-native": "*"
38
38
  },
39
- "gitHead": "f08e984ac18968d26ea7f7f34d11d29a0a97d518"
39
+ "gitHead": "0af9ad2afd326af47eae076f81a89105a026312d"
40
40
  }