{"id":19356914,"url":"https://github.com/alexfigliolia/reproducer-react-native","last_synced_at":"2026-05-16T04:43:17.711Z","repository":{"id":233155235,"uuid":"786176547","full_name":"alexfigliolia/reproducer-react-native","owner":"alexfigliolia","description":"A bug reproducer for react native","archived":false,"fork":false,"pushed_at":"2024-04-13T16:52:40.000Z","size":368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T17:50:45.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexfigliolia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-13T16:46:10.000Z","updated_at":"2024-04-13T16:46:27.000Z","dependencies_parsed_at":"2024-04-14T07:10:36.715Z","dependency_job_id":null,"html_url":"https://github.com/alexfigliolia/reproducer-react-native","commit_stats":null,"previous_names":["alexfigliolia/reproducer-react-native"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Freproducer-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Freproducer-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Freproducer-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfigliolia%2Freproducer-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfigliolia","download_url":"https://codeload.github.com/alexfigliolia/reproducer-react-native/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240473295,"owners_count":19807114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T07:05:49.701Z","updated_at":"2026-05-16T04:43:12.669Z","avatar_url":"https://github.com/alexfigliolia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"1. `git clone git@github.com:alexfigliolia/reproducer-react-native.git demo`\n2. `git clone git@github.com:alexfigliolia/react-native-counter-animation.git`\n3. `cd` into `react-native-counter-animation` and add the following to the `AnimatedNumber.tsx` module:\n\n```typescript\npublic override shouldComponentUpdate(\n    { style }: IAnimatedNumber,\n    nextState: State\n  ) {\n    if (style !== this.props.style) {\n      return true;\n    }\n    return this.state !== nextState;\n  }\n```\n\n4. While in react-native-counter-animation, add the following to the `Token.tsx` module:\n\n```typescript\n  public override shouldComponentUpdate({ value, style }: Props) {\n    if (value !== this.props.value) return true;\n    return style !== this.props.style;\n  }\n```\n\nThe above lines will allow a parent component to update the style of animating nodes while an animation is running.\n\n5. In `react-native-counter-animation` run `yarn install \u0026\u0026 yarn build`\n\n6. Add `react-native-counter-animation` to the demo application's package.json:\n\n```json\n{\n  \"dependencies\": {\n    \"react-native-counter-animation\": \"file:../react-native-counter-animation\"\n  }\n}\n```\n \n7. `cd` into the demo application and run \n\n```bash\nyarn install \u0026\u0026 cd ios \u0026\u0026 bundle install \u0026\u0026 bundle exec pod install \u0026\u0026 cd .. \u0026\u0026 yarn start\n```\n\n8. Open xcode and turn off user script sandboxing for pods and demo build target\n9. Run the app in debug mode\n\nThe app is going to open into a screen with a little graph and counter animation. The corresponding module can be located by searching for `\u003cRepairProgress /\u003e`. It'll send text updates to the counter component on a timer (which will throw the error) as long as renders are not being blocked. There is also a ` {fontSize !== null \u0026\u0026 ...}` conditional that you can turn off which will allow the component to calculate it's font-size at runtime. Turning this off will also recreate the error as long as the font size is initialized in some reactive way (theres a useState that can be initialized to ~20 instead of `null` at the top of the component). I'm available to help debug :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Freproducer-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfigliolia%2Freproducer-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfigliolia%2Freproducer-react-native/lists"}