I've checked this question and nothing helps.
So, I have such structure:
- src
- components
- (my components, buttons e.g.)
- images
- ...
- component.tsx
- images
- (my components, buttons e.g.)
- components
where every component has its own folder with images.
Command for building iOS:
node node_modules/react-native/local-cli/cli.js bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
I'm also using rnpm with such config:
"rnpm": {
"assets": [
"assets/images"
]
}
The problem is simple - production build of my iOS application doesn't have images at all. But TouchableOpacity
on them works correctly.
Android production build works fine, everything is OK.
So, how can we build iOS application with images?