{"_id":"@_elcaten/expo-list-section-index","name":"@_elcaten/expo-list-section-index","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@_elcaten/expo-list-section-index","version":"1.0.0","description":"Adds native iOS 26 alphabetical section indexes to Expo UI SwiftUI lists.","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"node internal/module_scripts/build.js","clean":"node internal/module_scripts/clean.js","lint":"eslint src/","test":"node internal/module_scripts/test.js","prepack":"node internal/module_scripts/prepare.js","open:ios":"node internal/module_scripts/open-ios.js","open:android":"node internal/module_scripts/open-android.js"},"keywords":["react-native","expo","expo-ui","swiftui","section-index","alphabet-list","ios-26"],"repository":{"type":"git","url":"git+https://github.com/Elcaten/expo-list-section-index.git"},"bugs":{"url":"https://github.com/Elcaten/expo-list-section-index/issues"},"author":{"name":"Elcaten","email":"sweet.bunch7296@fastmail.com","url":"https://github.com/Elcaten"},"license":"MIT","homepage":"https://github.com/Elcaten/expo-list-section-index#readme","publishConfig":{"access":"public"},"dependencies":{},"devDependencies":{"@babel/core":"^7.26.0","@expo/ui":"~57.0.7","@types/jest":"^29.2.1","@types/react":"~19.2.2","babel-preset-expo":"~57.0.4","eslint":"~9.39.4","eslint-config-universe":"^15.0.3","expo":"^57.0.7","expo-modules-core":"~57.0.7","jest":"^29.7.0","jest-expo":"~57.0.2","prettier":"^3.0.0","react":"19.2.3","react-dom":"19.2.3","react-native":"0.86.0","typescript":"^5.9.2"},"jest":{"preset":"jest-expo","roots":["<rootDir>/src"]},"peerDependencies":{"@expo/ui":">=57.0.0","expo":"*","react":"*","react-native":"*"},"gitHead":"d969404488e8fbc8cfe5d0d62946cc7fc9523ce3","_id":"@_elcaten/expo-list-section-index@1.0.0","_nodeVersion":"26.3.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-p05Jo6rAPP6i+TscMAIFK3ppVmGRLhwqqeZGQIzbVutLfrO2BJ9P/l8kHJ8q9CUSp55eMs+4sNzORqL/PcS8Bg==","shasum":"4dcbcf9fc49e1203817e566eddd74bac0e9e816a","tarball":"https://registry.npmjs.org/@_elcaten/expo-list-section-index/-/expo-list-section-index-1.0.0.tgz","fileCount":20,"unpackedSize":12661,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH+m94HGtWBLtTiy+ZvjJY8L3fRniBvCjEGo1jZnOImrAiEA3PadMDWW+CBmjg1qCIN7wMww0h4vWtkbRHFQJIjgyS8="}]},"_npmUser":{"name":"_elcaten","email":"little.lawn6658@fastmail.com"},"directories":{},"maintainers":[{"name":"_elcaten","email":"little.lawn6658@fastmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/expo-list-section-index_1.0.0_1785019356193_0.985504855586153"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T22:42:36.065Z","1.0.0":"2026-07-25T22:42:36.364Z","modified":"2026-07-25T22:42:36.519Z"},"maintainers":[{"name":"_elcaten","email":"little.lawn6658@fastmail.com"}],"description":"Adds native iOS 26 alphabetical section indexes to Expo UI SwiftUI lists.","homepage":"https://github.com/Elcaten/expo-list-section-index#readme","keywords":["react-native","expo","expo-ui","swiftui","section-index","alphabet-list","ios-26"],"repository":{"type":"git","url":"git+https://github.com/Elcaten/expo-list-section-index.git"},"author":{"name":"Elcaten","email":"sweet.bunch7296@fastmail.com","url":"https://github.com/Elcaten"},"bugs":{"url":"https://github.com/Elcaten/expo-list-section-index/issues"},"license":"MIT","readme":"# @_elcaten/expo-list-section-index\n\nAdds native iOS 26 alphabetical section indexes to\n[`@expo/ui`](https://docs.expo.dev/versions/v57.0.0/sdk/ui/swift-ui/) SwiftUI lists.\n\n## Requirements\n\n- Expo SDK 57 or newer\n- `@expo/ui`\n- iOS 26 or newer\n- A development or production build; the native module is not included in Expo Go\n\nThe modifiers are no-ops on earlier iOS versions.\n\n## Installation\n\n```sh\nnpx expo install @expo/ui\nnpm install @_elcaten/expo-list-section-index\nnpx expo run:ios\n```\n\nYou can also build the app with EAS Build.\n\n## Usage\n\nApply `sectionIndexLabel` to every `Section` and\n`listSectionIndexVisibility` to the containing `List`.\n\n```tsx\nimport { listSectionIndexVisibility, sectionIndexLabel } from '@_elcaten/expo-list-section-index';\nimport { Host, List, Section, Text } from '@expo/ui/swift-ui';\nimport { listStyle } from '@expo/ui/swift-ui/modifiers';\n\nconst CONTACTS = [\n  'Ada Lovelace',\n  'Barbara Liskov',\n  'Charles Babbage',\n  'Dorothy Vaughan',\n  'Edsger Dijkstra',\n  'Frances Allen',\n  'Grace Hopper',\n  'Hedy Lamarr',\n] as const;\n\nexport default function App() {\n  return (\n    <Host style={{ flex: 1 }}>\n      <List modifiers={[listStyle('plain'), listSectionIndexVisibility('visible')]}>\n        {CONTACTS.map((name) => {\n          const letter = name.charAt(0);\n\n          return (\n            <Section key={name} title={letter} modifiers={[sectionIndexLabel(letter)]}>\n              <Text>{name}</Text>\n            </Section>\n          );\n        })}\n      </List>\n    </Host>\n  );\n}\n```\n\n`listSectionIndexVisibility` accepts `'automatic'`, `'visible'`, or `'hidden'`.\nPass `null` to `sectionIndexLabel` to omit a section from the index.\n","readmeFilename":"README.md","_rev":"1-24ed5b500a23d25e112428bfc7124d77"}