Skip to content

Commit cb610dd

Browse files
motiz88facebook-github-bot
authored andcommitted
Assume *.ktx assets are packaged as Android drawables
Summary: Updates React Native's asset runtime to look for `*.ktx` assets under `drawable-*` on Android. This by itself does **not**: 1. Add runtime support for loading KTX images. 2. Update the OSS packager to actually package KTX files as drawables. (This will need to happen [here](https://github.com/react-native-community/cli/blob/cddb0c3fb06ef949ea689221c6167147af40e37f/packages/cli-plugin-metro/src/commands/bundle/assetPathUtils.ts#L39-L46).) Changelog: [Android][Changed] Assume *.ktx assets are packaged as Android drawables Reviewed By: javache Differential Revision: D32597214 fbshipit-source-id: 25007c1e0eba769ce9e484fa20da5f26890eb38d
1 parent 5273553 commit cb610dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/assets/path-support.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const drawableFileTypes = new Set([
4444
'gif',
4545
'jpeg',
4646
'jpg',
47+
'ktx',
4748
'png',
4849
'svg',
4950
'webp',

0 commit comments

Comments
 (0)