I would like to know what parts I would need to charge a 36V lithium battery for an ebike? I want to charge the battery while riding the bike for greater range.
Before you worry about charging, consider this: It takes about 85W to propel a 75kg cyclist at 20km/h under ideal conditions. Thin film (i.e. flexible) solar panels have an efficiency of ~9% and when deployed as an overhead canopy would likely deliver no more than 50W/m² in mid-latitudes. To generate the required 85W you thus would need a panel 1.7m² in size. That's a big panel (which turns into a big sail when it gets windy).
If you weigh more than 75kg, or want to ride in the morning or afternoon, or it's windy or cloudy, or you want to ride through even gently undulating hills, or the road conditions are not perfect, or your bike isn't brand new, then the situation gets a lot worse. Small solar panels are almost worthless for the average e-bike — they just don't harvest enough energy in 'typical' conditions to be useful.
If you want longer range then consider a tow-behind trailer with a (more efficient) mono/poly-crystalline solar panel as a lid, and a power coupling to the bike. You can store your gear in it, have extra batteries in it, and unhitch it whenever you don't want or need it.