-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve loading bottom sheet by using non modal version (#671)
* fix: improve loading bottom sheet by using non modal version * improve search lag * v8.5.2-alpha.1 * fix: android weird input * fix: more perf things * fix: pan to close * v8.5.2-alpha.2 * fix: update sb version * v8.5.2-alpha.3
- Loading branch information
Showing
26 changed files
with
735 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
|
||
const template = (num: number) => `import { Meta, StoryObj } from '@storybook/react' | ||
import { View } from 'react-native' | ||
const Test${num} = () => { | ||
return <View style={{ flex: 1, backgroundColor: 'red' }} /> | ||
} | ||
const meta: Meta<typeof Test${num}> = { | ||
title: 'PerfTesting/Test${num}', | ||
component: Test${num}, | ||
} | ||
export default meta | ||
export const Default: StoryObj<typeof Test${num}> = {} | ||
export const one: StoryObj<typeof Test${num}> = {} | ||
export const two: StoryObj<typeof Test${num}> = {} | ||
export const three: StoryObj<typeof Test${num}> = {} | ||
export const four: StoryObj<typeof Test${num}> = {} | ||
export const five: StoryObj<typeof Test${num}> = {} | ||
export const six: StoryObj<typeof Test${num}> = {} | ||
export const seven: StoryObj<typeof Test${num}> = {} | ||
export const eight: StoryObj<typeof Test${num}> = {} | ||
export const nine: StoryObj<typeof Test${num}> = {} | ||
export const ten: StoryObj<typeof Test${num}> = {} | ||
export const eleven: StoryObj<typeof Test${num}> = {} | ||
export const twelve: StoryObj<typeof Test${num}> = {} | ||
export const thirteen: StoryObj<typeof Test${num}> = {} | ||
export const fourteen: StoryObj<typeof Test${num}> = {} | ||
export const fifteen: StoryObj<typeof Test${num}> = {} | ||
export const sixteen: StoryObj<typeof Test${num}> = {} | ||
export const seventeen: StoryObj<typeof Test${num}> = {} | ||
export const eighteen: StoryObj<typeof Test${num}> = {} | ||
export const nineteen: StoryObj<typeof Test${num}> = {}`; | ||
|
||
const generateFiles = () => { | ||
const baseDir = path.join(__dirname, '../components/PerfTesting'); | ||
|
||
// Create directory if it doesn't exist | ||
if (!fs.existsSync(baseDir)) { | ||
fs.mkdirSync(baseDir, { recursive: true }); | ||
} | ||
|
||
// Generate files from Test11 to Test50 (since Test1-10 already exist) | ||
for (let i = 1; i <= 200; i++) { | ||
const fileName = `Test${i}.stories.tsx`; | ||
const filePath = path.join(baseDir, fileName); | ||
|
||
fs.writeFileSync(filePath, template(i)); | ||
console.log(`Generated ${fileName}`); | ||
} | ||
}; | ||
|
||
generateFiles(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"npmClient": "yarn", | ||
"registry": "https://registry.npmjs.org", | ||
"version": "8.5.2-alpha.0" | ||
"version": "8.5.2-alpha.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.