Sleep for 10 wk old

My baby is 10 weeks old and only sleeps if I put her in the boppy pillow. Let me explain it… we have a pack n play and it has a bassinet with it. We put the pillow in there. She can’t go nowhere’s. At the hospital they had her evaluated as well. Anyhow. She’s out growing the bassinet and and I’m going to put her in the crib part without the pillow. My question is how long will it take for her to adjust from “feeling held” to laying flat.

** she does take some naps laying flat during the day like on my bed.